// Use this for initialization void Awake() { ab = FindObjectOfType <AbilityUtility2>(); prewiew.SetActive(true); }
// Use this for initialization void Start() { timer = 0.5f; lm = FindObjectOfType <LifeManager>(); selection = FindObjectOfType <SelectControllerP2>(); turn = FindObjectOfType <TurnManager>(); transform.position = grid.GetWorldPosition(x, y); maxRangeHzUtilityPlayer2 = x; maxRangeVtUtilityPlayer2 = y; //turn.isTurn = true; contMp = 4; att = FindObjectOfType <AttackBaseUtility2>(); ab = FindObjectOfType <AbilityUtility2>(); }
void Start() { timer = 0f; attTankP1 = FindObjectOfType <AttackBase1>(); attTankP2 = FindObjectOfType <AttackBase2>(); attHealerP1 = FindObjectOfType <AttackBaseHealer>(); attHealerP2 = FindObjectOfType <AttackBaseHealer2>(); attUtilityP1 = FindObjectOfType <AttackBaseUtility>(); attUtilityP2 = FindObjectOfType <AttackBaseUtility2>(); attDealerP1 = FindObjectOfType <AttackBaseDealer>(); attDealerP2 = FindObjectOfType <AttackBaseDealer2>(); abTankP1 = FindObjectOfType <AbilityTank>(); abTankP2 = FindObjectOfType <AbilityTank2>(); abHealerP1 = FindObjectOfType <AbilityHealer>(); abHealerP2 = FindObjectOfType <AbilityHealer2>(); abUtilityP1 = FindObjectOfType <AbilityUtility>(); abUtilityP2 = FindObjectOfType <AbilityUtility2>(); abDealerP1 = FindObjectOfType <AbilityDealer>(); abDealerP2 = FindObjectOfType <AbilityDealer2>(); inputPad = FindObjectOfType <InputTester>(); inputChecker = FindObjectOfType <InputChecker>(); }