Ejemplo n.º 1
0
 protected virtual void StartDestroyEffects(bool p_useFragments)
 {
     if (FragmentSpawner != null && p_useFragments)
     {
         FragmentSpawner.SpawnFragments();
     }
     BlockUtils.InstantiateEffectOverOwner(this.transform, DestroyEffectObject, false, true);
 }
Ejemplo n.º 2
0
 protected virtual void Awake()
 {
     FragmentSpawner.RegisterFragment(this);
 }
Ejemplo n.º 3
0
 // Update is called once per frame
 protected virtual void OnDestroy()
 {
     FragmentSpawner.UnregisterFragment(this);
 }