Exemplo n.º 1
0
    // Update is called once per frame

    void GetGrid()
    {
        grid              = gridCombatSystem.GetGrid();
        lastActiveCell    = grid.GetGridObject(0, 0);
        lastPlayerCell    = grid.GetGridObject(player.transform.position);
        rangeCombatPlayer = player.rangeCombat;
    }
Exemplo n.º 2
0
 void Start()
 {
     Instance = this;
     debugS   = debug;
     grid     = new GridComplete(10, 20, 1f, new Vector3(-13, -6), debug);
     grid.SetUnwalkable(unWalkableCells);
     pathAndRadiousVisualiation = GetComponent <VisualiationHandler>();
     currentState   = State.playerRound;
     OnStateChange += HandleStateChange;
     SetUp();
     UpdateObjectsInCellRefrences();
     SetUpOnGridReady();
 }
Exemplo n.º 3
0
 public void SetPlayerAndGrid(GameCharacter player, GridComplete grid)
 {
     this.grid   = grid;
     this.player = player;
 }
Exemplo n.º 4
0
 void SetUp()
 {
     grid = gridCombatSystem.GetGrid();
 }