Exemplo n.º 1
0
 void FindReferences()
 {
     entityStats      = GameObject.FindGameObjectWithTag("ConCom_EntityStats").GetComponent <UI_EntityStats>();
     commandWheel     = GameObject.FindGameObjectWithTag("ConCom_CommandWheel").GetComponent <UI_CommandWheel>();
     resPointsCounter = GameObject.FindGameObjectWithTag("ConCom_ResCounter").GetComponent <UI_ResCounter>();
     buildButtonsRoot = GameObject.FindGameObjectWithTag("ConCom_BuildButtons");
     cam          = Camera.main;
     marquee      = GameObject.FindGameObjectWithTag("ConCom_BoxSelect").GetComponent <Image>();
     movementGrid = GameObject.FindGameObjectWithTag("ConCom_Grid");
     initGridPos  = movementGrid.transform.position;
     lineMouse    = GameObject.FindGameObjectWithTag("ConCom_Line1").GetComponent <Effect_Line>();
     lineVert     = GameObject.FindGameObjectWithTag("ConCom_Line2").GetComponent <Effect_Line>();
 }
Exemplo n.º 2
0
    // Use this for initialization
    new void Start()
    {
        base.Start();

        lineEffect = Instantiate(lineEffectPrefab, transform.position, Quaternion.identity);
        lineEffect.SetEffectActive(0);

        chainEndsEffect    = new Effect_Point[2];
        chainEndsEffect[0] = Instantiate(chainEndsEffectPrefab, transform.position, Quaternion.identity);
        chainEndsEffect[1] = Instantiate(chainEndsEffectPrefab, transform.position, Quaternion.identity);
        chainEndsEffect[0].SetEffectActive(false);
        chainEndsEffect[1].SetEffectActive(false);

        audioLoop = Instantiate(audioLoopPrefab, transform.position, Quaternion.identity);
        audioLoop.SetEffectActive(false);
    }
Exemplo n.º 3
0
    // Use this for initialization
    new void Start()
    {
        base.Start();

        shieldMod  = new ShieldMod(parentUnit, 1, ShieldModType.ShieldProject);
        abilityBar = parentUnit.hpBar.GetComponent <UI_AbilBar_ShieldProject>();
        abilityBar.SetShield(shieldMod.shieldPercent, shieldMod.shieldPercent < 0);

        lineEffect = Instantiate(lineEffectPrefab, transform.position, Quaternion.identity);
        lineEffect.SetEffectActive(0);

        pointEffect = Instantiate(pointEffectPrefab, transform.position, Quaternion.identity);
        pointEffect.SetEffectActive(false);

        audioLoop = Instantiate(audioLoopPrefab, transform.position, Quaternion.identity);
        audioLoop.SetEffectActive(false);
    }