Exemplo n.º 1
0
    private void OnMouseEnter()
    {
        GameObject currentPlayer = TurnManager.GetCurrentPlayerTurn();
        CharInfo   info          = currentPlayer.GetComponent <CharInfo>();

        _info.Choosen = true;
        if (GetDistanceToTarget(currentPlayer) <= info.ShootingRange && currentPlayer.tag == "PlayerUnit")
        {
            InGameCursor.SetTargetCursor();
        }
    }
Exemplo n.º 2
0
 private void Start()
 {
     InGameCursor.CursorInit();
     Screen.SetResolution(1980, 1080, true);
 }
Exemplo n.º 3
0
 private void OnDestroy()
 {
     _info.Choosen = false;
     InGameCursor.SetDefaultCursor();
 }
Exemplo n.º 4
0
 private void OnMouseExit()
 {
     _info.Choosen = false;
     InGameCursor.SetDefaultCursor();
 }