Пример #1
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogWarning("More than 1 instance of PlayerFov");
         return;
     }
     instance = this;
 }
Пример #2
0
    void Start()
    {
        gameManager  = GameManager.instance;
        grid         = gameManager.grid;
        floorTilemap = gameManager.floorTilemap;
        wallTilemap  = gameManager.wallTilemap;
        playerFov    = PlayerFov.instance;
        StartCoroutine(Position());

        //Used for single turn by turn movement
        //controls.Main.Movement.performed += _ => Move();
    }