void Awake() { BoxRef = this.gameObject.AddComponent<BoxCollider>(); ScriptRef = this.gameObject.GetComponent<CartoonExplosionFX>(); ParentRef = this.gameObject.GetComponent<GameObject>(); }
void Awake() { BoxRef = this.gameObject.GetComponent<BoxCollider>(); ScriptRef = ParentRef.gameObject.GetComponent<CartoonExplosionFX>(); RigidRef = this.gameObject.GetComponent<Rigidbody>(); ShatterRef = this.gameObject.GetComponent<ShatterOnCollision>(); }
public virtual void Init() { FX = GetComponent <CartoonExplosionFX>(); }
public virtual void Init() { FX = GetComponent<CartoonExplosionFX>(); }