예제 #1
0
    private void Awake()
    {
        CachedTransform = this.transform;

        _myImage = GetComponent <SpriteRenderer>();

        if (!grid)
        {
            FindGrid();
        }
        ;

        cellCoords = grid.WorldToCell(CachedTransform.position);
        //Debug.Log(cellCoords);

        MoveableObjects.Add(cellCoords, this);
    }
예제 #2
0
 public ActionsManager( ref MoveableObjects pActableDictionary )
 {
     // Initialize the dictionary of object
     ObjectsItems = pActableDictionary;
 }
예제 #3
0
 public ActionsManager(ref MoveableObjects pActableDictionary)
 {
     // Initialize the dictionary of object
     ObjectsItems = pActableDictionary;
 }
예제 #4
0
 private void OnDestroy()
 {
     MoveableObjects.Remove(cellCoords);
 }