示例#1
0
    // 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");
    }
示例#2
0
 public void SetState(RBCState state)
 {
     this.state = state;
 }