Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     //GameManager.Instance.notifications
     Notifications.AddListener(this, "OnTalkToGoblin");
     Notifications.AddListener(this, "OnEndTalkToGoblin");
     cc      = GetComponent <CharacterController>();
     talking = false;
 }
Exemplo n.º 2
0
    //public Text Title;


    void Awake()
    {
        Notifications = GameObject.Find("GameManager").GetComponent <NotificationsManager>();
        Notifications.AddListener(this, "OnGameSetupComplete");
        gameManager = GameObject.Find("GameManager").GetComponent <GameManager>();

        gameStarted = false;
        playerState = PlayerState.none;

        //add screens to list at the same time
        list_screens.Clear();
        list_screens.Add(controlScreen);
        list_screens.Add(creditScreen);
        list_screens.Add(dialogueScreen);
        list_screens.Add(infoBox);
        list_screens.Add(introScreen);
        list_screens.Add(journalScreen);
        list_screens.Add(loseScreen);
        list_screens.Add(pauseScreen);
        list_screens.Add(quitScreen);
        list_screens.Add(titleScreen);
        list_screens.Add(winScreen);

        DisableAllScreensExcept(titleScreen);
        crosshairs.enabled = false;
        Text_WinText.text  = "You have avenged " + victimName + "'s untimely death by executing " + murdererName + "! \n The party continues, and the goblins sing horrible songs of your investigatory prowess.";
    }
Exemplo n.º 3
0
 void Start()
 {
     if (Notifications != null)
     {
         Notifications.AddListener(this, "KillBarrierDeath");
     }
 }
Exemplo n.º 4
0
 void Start()
 {
     if (notif != null)
     {
         notif.AddListener(this, "OnKeyboardInput");
     }
 }
Exemplo n.º 5
0
 void Start()
 {
     //Register this object as a listener for keyboard notifications
     if (Notifications != null)
     {
         Notifications.AddListener(this, "OnKeyboardInput");
     }
 }
    void Start()
    {
        //Get notifications manager
        NM = GetComponent <NotificationsManager>();

        //Add as listener
        NM.AddListener(OnEventCall);
    }
Exemplo n.º 7
0
 void Start()
 {
     GameObject notmantmp = GameObject.FindGameObjectWithTag("Manager");
     NM = notmantmp.GetComponent<NotificationsManager>();
     NM.AddListener(OnPortalTimeSet,"PortalTimeSet");
     NM.PostNotification("PortalSpawn", type, 0);
     Debug.Log("spwn");
 }
Exemplo n.º 8
0
    void Start()
    {
        Notifications.AddListener(this, "OnEndTalkToGoblin");

        armed             = false;
        canPickUp         = false;
        infoBoxEnabled    = false;
        stopGoblinTalking = false;
    }
Exemplo n.º 9
0
    // Use this for initialization
    void Start()
    {
        notifications.AddListener(this, "onBoardMove");

        colliders      = gameObject.GetComponent <ColliderManager>();
        collidersCache = colliders.cachePos;

        thisPosition = gameObject.transform.position;

        Gds       = (2 * ((tileSize * gridSize) + (tileSize / 2)));
        direction = 1;

        player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();
        onPlayStart();
    }
Exemplo n.º 10
0
    // Use this for initialization
    void Start()
    {
        manager       = GameObject.Find("GameManager").GetComponent <StateManager>();
        notifications = manager.NotificationRef;
        boardRef      = gameObject.GetComponent <BoardController>();

        notifications.AddListener(this, "GoRight");
        notifications.AddListener(this, "GoLeft");
        notifications.AddListener(this, "GoUp");
        notifications.AddListener(this, "GoDown");
        notifications.AddListener(this, "GoTopRight");
        notifications.AddListener(this, "newBoard");
        notifications.AddListener(this, "boardDestroyed");
        notifications.AddListener(this, "GoBack");

        thisPos  = gameObject.transform;
        cachePos = thisPos.position;
        Gds      = boardRef.Gds;
    }
Exemplo n.º 11
0
 void Start()
 {
     Notifications.AddListener(this, "OnTalkToGoblin");
     PauseTrue();
 }
Exemplo n.º 12
0
 void Start()
 {
     NM = GetComponentInParent<NotificationsManager>();
     NM.AddListener(OnEvProva, "eventoProva");
 }
Exemplo n.º 13
0
 void Awake()
 {
     manager       = GameObject.Find("GameManager").GetComponent <StateManager>();
     notifications = manager.NotificationRef;
     notifications.AddListener(this, "onPlayerMove");
 }