// Use this for initialization void Awake() { ab = FindObjectOfType <AbilityDealer2>(); prewiew.SetActive(true); }
// Use this for initialization void Start() { contProv = 1; timer = 0.5f; lm = FindObjectOfType <LifeManager>(); selection = FindObjectOfType <SelectControllerP2>(); turn = FindObjectOfType <TurnManager>(); transform.position = grid.GetWorldPosition(x, y); maxRangeHzDealerPlayer2 = x; maxRangeVtDealerPlayer2 = y; turn.isTurn = true; contMp = 4; att = FindObjectOfType <AttackBaseDealer2>(); ab = FindObjectOfType <AbilityDealer2>(); }
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>(); }