blob: 49c24b3bd2ae686319cc93358ea8f91f3f4b2311 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using System;
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;
[Serializable]
public class ArtInstance
{
[FoldoutGroup("$profile", 0)]
public PostProcessProfile profile;
[FoldoutGroup("$profile", 0)]
public ParticleSystem[] parts;
public void TogglePart(bool on)
{
for (int i = 0; i < parts.Length; i++)
{
parts[i].gameObject.SetActive(on);
parts[i].Play();
}
}
}
|