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


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