Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
known_issues [19-07-2017 11:20]
185.48.102.186 [How do I create additional screen / screen state / scene?]
known_issues [19-07-2017 11:20] (current)
185.48.102.186 [How do I create additional screen / screen state / scene?]
Line 32: Line 32:
 Next, let's change so our Play button in main menu sends us to elvel selection screen. Go to //​Screen_Main/​Panel/​Bt_Play//​ remove //​PT_Screen_BtState//​ script from button and add //​PT_Screen_Bt_GoTo//​ script in place of it. Drag your //​Screen_LevelSelection//​ screen into //​TargetScreen//​ variable of added script. Last thing you need to do here is add //OnClick// event to the //​Bt_Play//,​ click on you button object, fint //​OnClick()//​ , drag or find the //Bt_Play// object into object category of //​OnClick()//​ event, lastly select funtion to execute - //​PT_ScreenBt_GoTo.ButtonInteract()//​. Next, let's change so our Play button in main menu sends us to elvel selection screen. Go to //​Screen_Main/​Panel/​Bt_Play//​ remove //​PT_Screen_BtState//​ script from button and add //​PT_Screen_Bt_GoTo//​ script in place of it. Drag your //​Screen_LevelSelection//​ screen into //​TargetScreen//​ variable of added script. Last thing you need to do here is add //OnClick// event to the //​Bt_Play//,​ click on you button object, fint //​OnClick()//​ , drag or find the //Bt_Play// object into object category of //​OnClick()//​ event, lastly select funtion to execute - //​PT_ScreenBt_GoTo.ButtonInteract()//​.
  
-Now open your //​GameScene_2//,​ drag and drop //​UILoader//​ and //​ManagerSetup//​ prefabs into your scene (//​PilloTemplate//​Prefabs//​),​ click on //​UILoader//​ and drag your //​State_Game_2//​ prefab into //​FirstState//​ variable of //​UILoader//​.+Now open your //​GameScene_2//,​ drag and drop //​UILoader//​ and //​ManagerSetup//​ prefabs into your scene (//​PilloTemplate/​Prefabs//​),​ click on //​UILoader//​ and drag your //​State_Game_2//​ prefab into //​FirstState//​ variable of //​UILoader//​.
  
 All done, play your //​MainMenuScene//​and browse through levels. All done, play your //​MainMenuScene//​and browse through levels.