public void Disable(NullCreature.NullState state) { switch (state) { case NullCreature.NullState.BROKEN: animController.animator = animators[1]; this.Good.gameObject.SetActive(false); this.Normal.gameObject.SetActive(true); this.Bad.gameObject.SetActive(false); break; case NullCreature.NullState.CREATURE: animController.animator = animators[2]; this.Good.gameObject.SetActive(false); this.Normal.gameObject.SetActive(false); this.Bad.gameObject.SetActive(true); break; case NullCreature.NullState.WORKER: animController.animator = animators[0]; this.Good.gameObject.SetActive(true); this.Normal.gameObject.SetActive(false); this.Bad.gameObject.SetActive(false); break; } }
public void Appear(NullCreature.NullState current) { switch (current) { case NullCreature.NullState.WORKER: this.Good.gameObject.SetActive(true); break; case NullCreature.NullState.BROKEN: this.Normal.gameObject.SetActive(true); break; case NullCreature.NullState.CREATURE: this.Bad.gameObject.SetActive(true); break; } }
public void SetState(NullCreature.NullState state) { this.currentState = state; }