public void LoadLoadoutScreen()
 {
     if (playerLo == null)
     {
         playerLo = FindObjectOfType <PlayerController> ().GetComponent <RobotLoadout> ();
     }
     PauseScreenUpdate();
     UpdateDisplayDetails();
 }
Exemplo n.º 2
0
 // 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);
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     playerLo = FindObjectOfType <PlayerController> ().GetComponent <RobotLoadout> ();
 }