public void LoadLoadoutScreen() { if (playerLo == null) { playerLo = FindObjectOfType <PlayerController> ().GetComponent <RobotLoadout> (); } PauseScreenUpdate(); UpdateDisplayDetails(); }
// Use this for initialization void Start() { ring = transform.Find("Ring"); leftArm = ring.Find("LeftWeapon").GetComponentsInChildren <Image> (); rightArm = ring.Find("RightWeapon").GetComponentsInChildren <Image> (); newArm = ring.Find("Weapon").GetComponentsInChildren <Image> (); if (FindObjectOfType <PlayerController> ()) { playerLo = FindObjectOfType <PlayerController> ().GetComponent <RobotLoadout> (); } else { Destroy(gameObject); } anim = GetComponent <Animator> (); np = FindObjectOfType <NotificationsPanel> (); ring.gameObject.SetActive(false); }
// Use this for initialization void Start() { playerLo = FindObjectOfType <PlayerController> ().GetComponent <RobotLoadout> (); }