public void init() { status = new STATUS(); BULLETSPAWNER = GetComponentInChildren <TD_BulletSpawner>(); anim = GetComponent <Animator>(); thisTr = this.transform; rig = GetComponent <Rigidbody>(); rig.constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY | RigidbodyConstraints.FreezeRotationZ; coll = GetComponent <CapsuleCollider>(); BULLETSPAWNER.INITIALIZING(this); allBombs.Add(jelly); allBombs.Add(candyBomb); }
public void shot() { BULLETSPAWNER.shoot(); }