Exemple #1
0
 protected void Init()
 {
     map          = GameObject.FindObjectOfType <Map>();
     brawl        = GetComponent <Brawl>();
     move         = soldier.moveRange;
     soldier.move = this;
     TurnManager.AddUnit(this); //esta unidad se añadira sola a la lista cuando se cree //COMENTAAAAAAAAAAAAAAAAAAR
 }
Exemple #2
0
 protected void Initialization()
 {
     halfHeight = GetComponent <Collider>().bounds.extents.y; //Przypisanie wysokosci jednostki nad ziemia do zmiennej
     CenterPosition();
     CharacterAnimController = GetComponentInChildren <CharacterAnimatorController>();
     ZombieAnimaController   = GetComponentInChildren <ZombieAnimatorController>();
     Weapon = GameObject.FindGameObjectWithTag("ActivePlayer").GetComponent <Weapon>();
     TurnManager.AddUnit(this); //Dodanie jednostki
 }
Exemple #3
0
    protected void Init()
    {
        tiles      = GameObject.FindGameObjectsWithTag("Tile");
        halfHeight = GetComponent <Collider>().bounds.extents.y;

        TurnManager.AddUnit(this);
        GridManager.AddUnit(this, new Vector2(transform.localPosition.x, transform.localPosition.z));

        spriteFaceCamera = GetComponent <SpriteFaceCamera>();

        remainingMove = Energy;

        floatingText = Resources.Load("GUI/FloatingText") as GameObject;
    }