void Start() { trur_event = GameObject.FindGameObjectWithTag("GM").GetComponent <Test_Turn_Base>(); gm = GameObject.FindGameObjectWithTag("GM").GetComponent <Game_Manager>(); chess_map_sc = GameObject.FindGameObjectWithTag("Chess Map").GetComponent <Test_Chess_Map>(); target = chess_map_sc.chess_map[pos]; chess_map_sc.Add_Pos(pos, this.gameObject); Battle_Cry(pos, can_use_b); trur_event.AddEndTurnEvent(When_end_turn); }
private void Awake() { chess_map = GameObject.FindGameObjectWithTag("Chess Map").GetComponent <Test_Chess_Map>(); gm = GameObject.FindGameObjectWithTag("GM").GetComponent <Game_Manager>(); }