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(); }
void Start() { startPos = transform.position; itemFrameController = GameObject.Find("HUD_InGame/ItemFrame").GetComponent <ItemFrameController>(); floatingOffset = UnityEngine.Random.value * 3.1415f; }