void Start() { this.shooterMode = this.GetComponent<KaneShooterController> (); this.robotMode = this.GetComponent<RobotController> (); this.robotMode.enabled = this.starts [0]; this.shooterMode.enabled = this.starts [1]; this.shooterMode.start (); }
void Start() { shooter = GetComponentInParent<KaneShooterController> (); bulletTag = shooter.bullet.tag; }