void Awake() {
        BoxRef = this.gameObject.AddComponent<BoxCollider>();
        ScriptRef = this.gameObject.GetComponent<CartoonExplosionFX>();
        ParentRef = this.gameObject.GetComponent<GameObject>();


    }
Exemple #2
0
 void Awake() {
     BoxRef = this.gameObject.GetComponent<BoxCollider>();
     ScriptRef = ParentRef.gameObject.GetComponent<CartoonExplosionFX>();
     RigidRef = this.gameObject.GetComponent<Rigidbody>();
     ShatterRef = this.gameObject.GetComponent<ShatterOnCollision>();
   
 }
Exemple #3
0
 public virtual void Init()
 {
     FX = GetComponent <CartoonExplosionFX>();
 }
Exemple #4
0
		public virtual void Init()
		{
			FX = GetComponent<CartoonExplosionFX>();
		}