Ejemplo n.º 1
0
    void Start()
    {
        rb          = GetComponent <Rigidbody>();
        fireTimer   = gameObject.AddComponent <Timer>();
        shieldTimer = gameObject.AddComponent <Timer>();

        ps          = transform.FindChild("Shield").gameObject.GetComponentInChildren <ParticleSystem>();
        shieldLight = transform.FindChild("Shield").gameObject.GetComponentInChildren <Light>();

        itemFrameController = GameObject.Find("HUD_InGame/ItemFrame").GetComponent <ItemFrameController>();

        DisableShield();
    }
Ejemplo n.º 2
0
 void Start()
 {
     startPos            = transform.position;
     itemFrameController = GameObject.Find("HUD_InGame/ItemFrame").GetComponent <ItemFrameController>();
     floatingOffset      = UnityEngine.Random.value * 3.1415f;
 }