void Awake() { rb2d = this.GetComponent <Rigidbody2D>(); shootingPooled = this.GetComponent <ShootingPooled>(); instance = this; }
ShootingPooled InitMyPooledShooting(ShootingPooled current) { if (current == null) { current = this.GetComponent <ShootingPooled> (); } // else // return current; if (current == null) { Debug.LogError(this.ToString() + " needs ShootingPooled Script attached!"); this.enabled = false; } else { if (useWeaponSettings) { ReadWeaponSettings(current); } } return(current); }
void Awake() { myPooledShooting = InitMyPooledShooting(myPooledShooting); }
void ReadWeaponSettings(ShootingPooled current) { // minTimeBetweenTrigger = current. // maxTimeBetweenTrigger = current. }