void OnMouseDown() { GameLogicManager gameLogic = GlobalSettings.Instance.GameLogicManager.GetComponent <GameLogicManager>(); if (gameLogic.CurrentState == GameState.DISTRIBUTION_CARD) { gameLogic.AddCardToPlayer(this.gameObject); gameLogic.UpdatePlayerCardPostion(); } else if (gameLogic.CurrentState == GameState.BATTLE) { if (!gameLogic.IsCardBattle(this.gameObject) && !gameLogic.IsFighting() && !gameLogic.IsEmptyBattle()) { gameLogic.MovePlayerCardToBattlePoint(this.gameObject); gameLogic.UpdatePlayerCardPostion(); } } }