예제 #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;
    }
예제 #2
0
 void SetUp()
 {
     grid = gridCombatSystem.GetGrid();
 }
예제 #3
0
 void SnapToCell()
 {
     transform.position = gridCS.GetGrid().GetGridObject(transform.position).GetCellPos();
     gridCS.GetGrid().GetGridObject(transform.position).SetObjectInTile(gameObject);
 }