Welcome to GEMENTAR TOUR PUO V2 Development Documentation. Enjoy your stay!

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:building_search_explore [2022/08/04 10:37] – [Game System] adminwiki:building_search_explore [2022/08/04 11:17] (current) – [Final Demo] admin
Line 1: Line 1:
  --- //[[admin@puov2.gementar.com|Hilmi]] 2022/08/01 17:28//  --- //[[admin@puov2.gementar.com|Hilmi]] 2022/08/01 17:28//
 +
 +===== Final Demo =====
 +
 +{{ :wiki:runtobuilding.gif?nolink |}}
 +
  
 ===== Prototyping ===== ===== Prototyping =====
Line 5: Line 10:
 {{ :wiki:gifthisthing22.gif?nolink |}} {{ :wiki:gifthisthing22.gif?nolink |}}
  
 +<file | Finsihed Minigame > 
 +Checkpoint adding can be added dynamically there's no hard coded thing here.. which is nice <3
 +</file>
  
 ===== Game System ===== ===== Game System =====
Line 10: Line 18:
 {{ :wiki:getusers.php_7_.png?nolink&600 |}} {{ :wiki:getusers.php_7_.png?nolink&600 |}}
  
-<code CSharp | Full Script>+<file | Haloooo~~ >  
 +In this game mode I explore new things that is, Delegate and Actions, so now my gameManager script in this case RunToBuilding doesn't have any dependency to UI... UI script didn'
 +even existed in RunToBuilding, so less thing connected less thing will be broken. I not yet search it but I hope other language such as java would have something similar to this. 
 +you can see on my UI scripts this thing make me motivated to make a clean code... this UI scripts is the most cleanest my code can be (4/8/2022) I put date here maybe my future self 
 +wold vomit to my code here HAHAHAHAH HELLO FUTURE SELF!!! 
 +</file> 
 + 
 +<code CSharp | RunToBuilding.cs>
 using Sirenix.OdinInspector; using Sirenix.OdinInspector;
 using System; using System;
Line 119: Line 134:
 </code> </code>
  
-<code CSharp | Full Script>+<code CSharp | RunToBuildingUI.cs>
 using System.Collections; using System.Collections;
 using System.Collections.Generic; using System.Collections.Generic;
Line 175: Line 190:
     #endregion     #endregion
  
-    private void CloseUI() +    private void CloseUI() => UI.SetActive(false); 
-    { + 
-        UI.SetActive(false); + 
-    }+    private void OpenUI() => UI.SetActive(true);
  
-    private void OpenUI() 
-    { 
-        UI.SetActive(true); 
-    } 
  
     private IEnumerator RunWinLoseTextFaded(string setText)     private IEnumerator RunWinLoseTextFaded(string setText)
Line 193: Line 204:
     }     }
  
-    private void SetWinLoseText(string setText) +    private void SetWinLoseText(string setText) =>  winLoseText.text = setText;
-    { +
-        winLoseText.text = setText; +
-    }+
  
-    private void OpenWinLoseTextFaded() 
-    { 
-        winLoseText.DOFade(1, 3f); 
-    } 
  
-    private void CloseWinLoseTextFaded() +    private void OpenWinLoseTextFaded() => winLoseText.DOFade(1, 3f); 
-    { + 
-        winLoseText.DOFade(0, 3f); + 
-    }+    private void CloseWinLoseTextFaded() => winLoseText.DOFade(0, 3f); 
  
  
 } }
 +
  
 </code> </code>
  
-<code CSharp | Full Script>+<code CSharp | RunToBuildingCheckPoint.cs>
 using System; using System;
 using System.Collections; using System.Collections;

QR Code
QR Code wiki:building_search_explore (generated for current page)
Hello World!
DokuWiki with monobook... rules!