Exemplo n.º 1
0
        public void Attacked(string stateattacked)
        {
            switch (stateattacked)
            {
            case "Enemy Blind":
                Debug.Log("적에게 섬광 상태 공격을 당함");
                this.state = new BlindState();
                break;

            case "Enemy Attacked":
                Debug.Log("적에게 심각한 공격을 받음");
                this.state = new InjuredState();
                break;
            }
        }
Exemplo n.º 2
0
 public Player(MobState state)
 {
     this.state = state;
 }