// Use this for initialization
 void Start()
 {
     roomManager = FindObjectOfType <RoomManager> ();
     roomGen     = FindObjectOfType <RoomGeneration> ();
     LoadQuestStatus();
     DeactivateAllQuests();
     notifPanel = FindObjectOfType <NotificationsPanel>();
 }
		void Start () {
			roLo = GetComponent<RobotLoadout> ();
			special = GetComponent<PlayerSpecial> ();
			np = FindObjectOfType<NotificationsPanel> ();
			rb = GetComponent<Rigidbody2D> ();
			PlayerSpawn ();
			dodgeAvailable = true;
		}
Exemple #3
0
 void EndOfGame()
 {
     if (!FindObjectOfType <BossBehavior> ())
     {
         notifPanel = FindObjectOfType <NotificationsPanel>();
         string newText = "Enemies can now drop Periphetes' Bronze Pipe!";
         notifPanel.NotificationsPanelSetEnable(newText);
         Theseus.Core.PlayerPrefsManager.SetBossBeaten(1);
         StartCoroutine(WaitAndEndScene());
     }
 }
Exemple #4
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(gameObject);
        }

        image = GetComponent <Image>();
        color = image.color;

        myPanel = transform.parent.GetComponentInChildren <NotificationsPanel>(true);
        if (!myPanel)
        {
            Debug.LogWarning("myPanel not found!", gameObject);
        }
        else
        {
            myPanel.RoundReset();
        }
    }
 void Start()
 {
     itemPanel = FindObjectOfType <ItemPanel> ();
     np        = FindObjectOfType <NotificationsPanel> ();
 }