// Use this for initialization
 void Start()
 {
     selectionP2 = FindObjectOfType <SelectControllerP2>();
     turn        = FindObjectOfType <TurnManager>();
     turn.isTurn = true;
     tankP2      = FindObjectOfType <PositionTester2>();
     dealerP2    = FindObjectOfType <PositionDealer2>();
     utilityP2   = FindObjectOfType <PositionUtility2>();
     healerP2    = FindObjectOfType <PositionHealer2>();
 }
Example #2
0
 private void Start()
 {
     vibrato   = 10;
     strength  = 0.1f;
     tankP1    = FindObjectOfType <PositionTester>();
     tankP2    = FindObjectOfType <PositionTester2>();
     healerP1  = FindObjectOfType <PositionHealer>();
     healerP2  = FindObjectOfType <PositionHealer2>();
     utilityP1 = FindObjectOfType <PositionUtility>();
     utilityP2 = FindObjectOfType <PositionUtility2>();
     dealerP1  = FindObjectOfType <PositionDealer>();
     dealerP2  = FindObjectOfType <PositionDealer2>();
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     selection = FindObjectOfType <SelectionController>();
     dealer    = FindObjectOfType <PositionDealer>();
     tankP2    = FindObjectOfType <PositionTester2>();
     healerP2  = FindObjectOfType <PositionHealer2>();
     utilityP2 = FindObjectOfType <PositionUtility2>();
     dealerP2  = FindObjectOfType <PositionDealer2>();
     lm        = FindObjectOfType <LifeManager>();
     turn      = FindObjectOfType <TurnManager>();
     isAttack  = false;
     vibrato   = 10;
     strength  = 0.1f;
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     selectionP2   = FindObjectOfType <SelectControllerP2>();
     healerP2      = FindObjectOfType <PositionHealer2>();
     dealerP2      = FindObjectOfType <PositionDealer2>();
     utilityP2     = FindObjectOfType <PositionUtility2>();
     tankP2        = FindObjectOfType <PositionTester2>();
     lm            = FindObjectOfType <LifeManager>();
     turn          = FindObjectOfType <TurnManager>();
     isAbility     = false;
     Counter       = 2;
     CounterTurnA  = 0;
     timerAutoHeal = 0f;
 }
 // Use this for initialization
 void Start()
 {
     CounterStun  = 0;
     selection    = FindObjectOfType <SelectionController>();
     utility      = FindObjectOfType <PositionUtility>();
     tankP2       = FindObjectOfType <PositionTester2>();
     healerP2     = FindObjectOfType <PositionHealer2>();
     utilityP2    = FindObjectOfType <PositionUtility2>();
     dealerP2     = FindObjectOfType <PositionDealer2>();
     lm           = FindObjectOfType <LifeManager>();
     turn         = FindObjectOfType <TurnManager>();
     isAbility    = false;
     Counter      = 2;
     CounterTurnA = 0;
     vibrato      = 10;
     strength     = 0.1f;
 }
    // Use this for initialization
    void Start()
    {
        speed = 100;
        cont  = 0;
        x     = dealerP2.x;
        y     = dealerP2.y;
        // controllare
        selector.transform.position = grid.GetWorldPosition(dealerP2.x, dealerP2.y);
        transform.position          = grid.GetWorldPosition(dealerP2.x, dealerP2.y);
        selector.transform.GetChild(0).gameObject.SetActive(false);
        selectionP2 = Object.FindObjectOfType <SelectControllerP2>().GetComponent <SelectControllerP2>();

        dealerP2 = FindObjectOfType <PositionDealer2>();

        turn         = FindObjectOfType <TurnManager>();
        isAbility    = false;
        CounterA     = 2;
        CounterTurnA = 0;
    }
 void Start()
 {
     isTankUsable2      = true;
     isHealerUsable2    = true;
     isUtilityUsable2   = true;
     isDealerUsable2    = true;
     duration           = 0.5f;
     Text               = FindObjectOfType <HudManagerTest>();
     turn               = FindObjectOfType <TurnManager>();
     tankP2             = FindObjectOfType <PositionTester2>();
     healerP2           = FindObjectOfType <PositionHealer2>();
     utilityP2          = FindObjectOfType <PositionUtility2>();
     dealerP2           = FindObjectOfType <PositionDealer2>();
     contSelectionP2    = 0;
     transform.position = grid.GetWorldPosition(x, y);
     gameObject.GetComponent <MeshRenderer>().enabled = false;
     selector.SetActive(false);
     //selector.transform.position = grid.GetWorldPosition(tankP2.x, tankP2.y);
     inputPad = FindObjectOfType <InputTester>();
 }
 // Use this for initialization
 void Start()
 {
     speed    = 100;
     cont     = 0;
     x        = dealerP1.x;
     y        = dealerP1.y;
     dealerP1 = FindObjectOfType <PositionDealer>();
     // controllare
     selector.transform.position = grid.GetWorldPosition(dealerP1.x, dealerP1.y);
     transform.position          = grid.GetWorldPosition(dealerP1.x, dealerP1.y);
     selector.transform.GetChild(0).gameObject.SetActive(false);
     selection = Object.FindObjectOfType <SelectionController>().GetComponent <SelectionController>();
     Debug.Log("Selection: " + selection);
     utility      = FindObjectOfType <PositionUtility>();
     tankP2       = FindObjectOfType <PositionTester2>();
     healerP2     = FindObjectOfType <PositionHealer2>();
     utilityP2    = FindObjectOfType <PositionUtility2>();
     dealerP2     = FindObjectOfType <PositionDealer2>();
     lm           = FindObjectOfType <LifeManager>();
     turn         = FindObjectOfType <TurnManager>();
     isAbility    = false;
     CounterA     = 2;
     CounterTurnA = 0;
 }