Esempio n. 1
0
    void Awake()
    {
        //GameObject player = Instantiate(playerPrefab,new Vector3(0,0,0),Quaternion.identity);
        playerPrefab.SetActive(true);
        playerController = playerPrefab.GetComponent <PlayerController>();

        npcPooler      = new GameObjectPooler();
        itemPooler     = new GameObjectPooler();
        screens        = new List <IScreen>();
        screenDirector = new ScreenDirector();
        cmdInvoker     = new Invoker();

        //Load
        LoadGameScreens();
        //Init
        InitCommands();
        //Build
        BuildNPCInteractables();
    }
Esempio n. 2
0
 static public void Open()
 {
     ScreenDirector.LoadScreen("Alert", null);
 }
Esempio n. 3
0
 public void OnOk()
 {
     ScreenDirector.CloseScreen(this, true);
 }
Esempio n. 4
0
 static public void Open()
 {
     ScreenDirector.LoadScreen("Play", null, true);
 }
 public StartConversationCommand(ScreenDirector screenDirector, PlayerController playerController)
 {
     this.screenDirector   = screenDirector;
     this.playerController = playerController;
 }
Esempio n. 6
0
 public StartGameCommand(ScreenDirector screenDirector, PlayerController playerController)
 {
     this.screenDirector   = screenDirector;
     this.playerController = playerController;
 }