コード例 #1
0
ファイル: NullthingLevelController.cs プロジェクト: hmmt/BTHY
    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;
        }
    }
コード例 #2
0
ファイル: NullthingLevelController.cs プロジェクト: hmmt/BTHY
    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;
        }
    }
コード例 #3
0
ファイル: NullthingAnim.cs プロジェクト: hmmt/BTHY
 public void SetState(NullCreature.NullState state)
 {
     this.currentState = state;
 }