private void Start() { theTransform = transform; GameObject gO = GameObject.FindWithTag("Player"); player = gO.transform; gun = gO.GetComponentInChildren<Gun>(); custom = GameObject.FindWithTag("Scripts").GetComponent<CustomPlayClipAtPoint>(); }
private GameObject beam; // A beam that allows the level to be back trackable. private void Start() { theTransform = transform; accessLight = GetComponentInChildren <Light>(); doorLight = GameObject.FindWithTag("Exit").GetComponentInChildren <Light>(); player = GameObject.FindWithTag("Player").transform; custom = GameObject.FindWithTag("Scripts").GetComponent <CustomPlayClipAtPoint>(); }
private void Start() { theTransform = transform; accessLight = GetComponentInChildren<Light>(); doorLight = GameObject.FindWithTag("Exit").GetComponentInChildren<Light>(); player = GameObject.FindWithTag("Player").transform; custom = GameObject.FindWithTag("Scripts").GetComponent<CustomPlayClipAtPoint>(); }
private void Start() { theTransform = transform; GameObject gO = GameObject.FindWithTag("Player"); player = gO.transform; playerH = gO.GetComponent<PlayerHealth>(); custom = GameObject.FindWithTag("Scripts").GetComponent<CustomPlayClipAtPoint>(); }
private Reset reset; // Reference tot he Reset class. private void Start() { theTransform = transform; GameObject gO = GameObject.FindWithTag("Player"); player = gO.transform; playerH = gO.GetComponent <PlayerHealth>(); custom = GameObject.FindWithTag("Scripts").GetComponent <CustomPlayClipAtPoint>(); }
private CustomPlayClipAtPoint custom; // Reference to the CustomPlayClipAtPoint script. private void Start() { theTransform = transform; GameObject gO = GameObject.FindWithTag("Player"); player = gO.transform; gun = gO.GetComponentInChildren <Gun>(); custom = GameObject.FindWithTag("Scripts").GetComponent <CustomPlayClipAtPoint>(); }
private CustomPlayClipAtPoint custom; // Reference to the CustomPlayClipAtPoint script. private void Awake() { theTransform = transform; anim = transform.root.gameObject.GetComponent <Animator>(); player = GameObject.FindWithTag("Player").transform; playerCtrl = transform.root.GetComponent <PlayerControl>(); playerH = transform.root.GetComponent <PlayerHealth>(); custom = GameObject.FindWithTag("Scripts").GetComponent <CustomPlayClipAtPoint>(); bulletType = (int)bullets.Pistol; }
private void Awake() { theTransform = transform; anim = GetComponent<Animator>(); GameObject gO = GameObject.FindWithTag("Player"); player = gO.transform; rigid = GetComponent<Rigidbody2D>(); playerH = gO.GetComponent<PlayerHealth>(); custom = GameObject.FindWithTag("Scripts").GetComponent<CustomPlayClipAtPoint>(); }
private void Awake() { theTransform = transform; anim = transform.root.gameObject.GetComponent<Animator>(); player = GameObject.FindWithTag("Player").transform; playerCtrl = transform.root.GetComponent<PlayerControl>(); playerH = transform.root.GetComponent<PlayerHealth>(); custom = GameObject.FindWithTag("Scripts").GetComponent<CustomPlayClipAtPoint>(); bulletType = (int)bullets.Pistol; }
private CustomPlayClipAtPoint custom; // Reference to the CustomPlayClipAtPoint script. private void Awake() { theTransform = transform; anim = GetComponent <Animator>(); GameObject gO = GameObject.FindWithTag("Player"); player = gO.transform; rigid = GetComponent <Rigidbody2D>(); playerH = gO.GetComponent <PlayerHealth>(); custom = GameObject.FindWithTag("Scripts").GetComponent <CustomPlayClipAtPoint>(); }
private void Awake() { theTransform = transform; GameObject gO = GameObject.FindWithTag("Rip"); ripAnim = gO.GetComponent<Animator>(); ripSprite = gO.GetComponent<SpriteRenderer>(); playerCtrl = GetComponent<PlayerControl>(); anim = GetComponent<Animator>(); gO = GameObject.FindWithTag("Scripts"); custom = gO.GetComponent<CustomPlayClipAtPoint>(); reset = gO.GetComponent<Reset>(); currentH = HEALTH; }
public AudioClip deathClip; // Clip for when the player dies. private void Awake() { theTransform = transform; GameObject gO = GameObject.FindWithTag("Rip"); ripAnim = gO.GetComponent <Animator>(); ripSprite = gO.GetComponent <SpriteRenderer>(); playerCtrl = GetComponent <PlayerControl>(); anim = GetComponent <Animator>(); gO = GameObject.FindWithTag("Scripts"); custom = gO.GetComponent <CustomPlayClipAtPoint>(); reset = gO.GetComponent <Reset>(); currentH = HEALTH; }
private void Awake() { theTransform = transform; GameObject gO = GameObject.FindWithTag("Player"); rigid = gO.GetComponent<Rigidbody2D>(); poly = gO.GetComponent<PolygonCollider2D>(); playerCtrl = gO.GetComponent<PlayerControl>(); playerH = gO.GetComponent<PlayerHealth>(); player = gO.transform; anim = GetComponent<Animator>(); custom = GameObject.FindWithTag("Scripts").GetComponent<CustomPlayClipAtPoint>(); if (!found && gameObject.name.Equals("beam 1")) { found = true; anim.SetTrigger("HelpBeam"); } }
private CustomPlayClipAtPoint custom; // Reference to the CustomPlayClipAtPoint script. private void Awake() { theTransform = transform; GameObject gO = GameObject.FindWithTag("Player"); rigid = gO.GetComponent <Rigidbody2D>(); poly = gO.GetComponent <PolygonCollider2D>(); playerCtrl = gO.GetComponent <PlayerControl>(); playerH = gO.GetComponent <PlayerHealth>(); player = gO.transform; anim = GetComponent <Animator>(); custom = GameObject.FindWithTag("Scripts").GetComponent <CustomPlayClipAtPoint>(); if (!found && gameObject.name.Equals("beam 1")) { found = true; anim.SetTrigger("HelpBeam"); } }
private void Awake() { panels = new GameObject[] {PC1, PC2, Mobile1, Mobile2, controlsPanel, optionsPanel, creditsPanel}; custom = GameObject.FindWithTag("Scripts").GetComponent<CustomPlayClipAtPoint>(); }
public GameObject[] panels; // Array of the panels initialized above. private void Awake() { panels = new GameObject[] { PC1, PC2, Mobile1, Mobile2, controlsPanel, optionsPanel, creditsPanel }; custom = GameObject.FindWithTag("Scripts").GetComponent <CustomPlayClipAtPoint>(); }