Beispiel #1
0
    // Use this for initialization
    void Awake()
    {
        att = FindObjectOfType <AttackBaseDealer>();



        prewiew.SetActive(true);
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     timer              = 0.5f;
     myTurn             = false;
     lm                 = FindObjectOfType <LifeManager>();
     selection          = FindObjectOfType <SelectionController>();
     turn               = FindObjectOfType <TurnManager>();
     transform.position = grid.GetWorldPosition(x, y);
     Debug.Log("X: " + x + "Y: " + y);
     turn.isTurn = true;
     contMp      = 4;
     att         = FindObjectOfType <AttackBaseDealer>();
     ab          = FindObjectOfType <AbilityDealer>();
 }
    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>();
    }