// Use this for initialization void Start() { ship = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren<ShipController>(); mIsInfected = false; mInfectionTime = 20f; mExplosionDuration = 3f; mShouldExplode = false; mHealth = 1000; state = new RBCStateIdle(this); RBCAIScript ai = (RBCAIScript)gameObject.AddComponent("RBCAIScript"); gameObject.AddComponent("Rotation"); }
public void SetState(RBCState state) { this.state = state; }