public void AiProc() { if (PlayerManager.GetInst().Players[PlayerManager.GetInst().CurTurnIdx] == this) { if (Type.GOLEM == m_type) { AI_Golem ai = AI_Golem.GetInst(); CurHex.Passable = true; if (act != ACT.CASTING) { ai.MoveToNearUserPlayer(this); } } else { AIthink ai = AIthink.GetInst(); CurHex.Passable = true; if (act != ACT.CASTING) { ai.MoveToNearUserPlayer(this); } } //근점 플레이어찾는과정 추가내용 //이미 근접상태면 act는 IDLE 유지 이동 필요하면 act는 MOVING으로 //if (act == ACT.IDLE) } }
public static AI_Golem GetInst() { if (inst == null) { inst = new AI_Golem(); } return(inst); }