public void Start() { lm = FindObjectOfType <LifeManager>(); timer = 0.5f; contMp = 3; selectionP2 = FindObjectOfType <SelectControllerP2>(); turn = FindObjectOfType <TurnManager>(); transform.position = grid.GetWorldPosition(x, y); maxRangeHzTankPlayer2 = x; maxRangeVtTankPlayer2 = y; att = FindObjectOfType <AttackBase2>(); ab = FindObjectOfType <AbilityTank2>(); }
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>(); }
// Use this for initialization void Awake() { att = FindObjectOfType <AttackBase2>(); //gameObject.GetComponent<MeshRenderer>().enabled = false; prewiew.SetActive(true); }