private void OnMouseDown() { action.priest_move(this.gameObject); }
// Update is called once per frame void Update() { if (landing) { if (boat_move_to_left || boat_move_to_right) { return; } else { if (left_type == "devil") { Devilaction.devil_move(left_on_boat); } else if (left_type == "priest") { Priestaction.priest_move(left_on_boat); } if (right_type == "devil") { Devilaction.devil_move(right_on_boat); } else if (right_type == "priest") { Priestaction.priest_move(right_on_boat); } landing = false; } } }