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(); }
static public void Open() { ScreenDirector.LoadScreen("Alert", null); }
public void OnOk() { ScreenDirector.CloseScreen(this, true); }
static public void Open() { ScreenDirector.LoadScreen("Play", null, true); }
public StartConversationCommand(ScreenDirector screenDirector, PlayerController playerController) { this.screenDirector = screenDirector; this.playerController = playerController; }
public StartGameCommand(ScreenDirector screenDirector, PlayerController playerController) { this.screenDirector = screenDirector; this.playerController = playerController; }