예제 #1
0
 // Update is called once per frame
 void Update()
 {
     _color -= Color.white * 0.01f;
     for (int i = 0; i < transform.childCount; i++)
     {
         transform.GetChild(i).Translate(_direction[i]);
         transform.GetChild(i).GetComponent <Renderer>().material.SetColor("_TintColor", _color);
     }
     if (_color.a < 0)
     {
         Destroy(gameObject);
         Destroy(_particle_GameObject);
         StaticParameter.ClearReference(ref _particle_GameObject);
     }
 }
예제 #2
0
 public void OnExit()
 {
     Object.Destroy(_copy);
     StaticParameter.ClearReference(ref _copy);
 }
예제 #3
0
 public void OnDisable()
 {
     Destroy(_copy_Effect);
     StaticParameter.ClearReference(ref _copy_Effect);
 }