public void InitTacticsMovement() { if (unitInfo.faction == Factions.enemies) { GetComponent <MonsterConstructor>().SetUpMonster(); SetStats(); } SetActions(); //tiles = GameObject.FindGameObjectsWithTag("tile"); halfHeight = GetComponent <Collider>().bounds.extents.y; unitAnim = rig.GetComponent <Animator>(); CheckInitiative(); remainingMove = unitInfo.currentMove; remainingActions = 1; focusSwitched = false; if (RostaInfo.encounter) { Initiative.AddUnit(this); vcam.gameObject.transform.parent = null; } }