Vic Shen

@vxhen

Joined on Aug 3, 2019

  • # C# Operators ###### tags: `C#` | August 27, 2019 ## 01. Member Access Operator . 1. use the ```.``` token to access a member of a namespace or a type ###### eg: ###### 1. *Use . to access a nested namespace within a namespace* ``` using System.Collections.Generic; ``` ###### 2. *Use . to form a qualified name to access a type within a namespace* ``` System.Collections.Generic.IEnumerable<int> numbers = new int[] { 1, 2, 3 }; ``` <!--more--> ###### 3. *Use . to access type members, static a
     Like  Bookmark
  • ![](https://i.imgur.com/IWO9DRT.png) ###### tags: `Unity` | August 17, 2019 # Phase 3 ## 1. States and State Machines (狀態、狀態機) 1. State = Action or Process or Behaviour (物件狀態:可能為動作、行為、過程...) 2. State Machines assumes only 1 state at a time (狀態機一次僅可採用一個狀態) 4. Conditions (requirements) to transition form one state to the next. ![](https://i.imgur.com/Dr25xK3.png) ###### eg: ``` State A Decision State B/C [Start] ➡️ [Room wi
     Like  Bookmark
  • ###### tags: `Unity` | August 4, 2019 # Phase 2 ## 01. Console With Debug.log() 1. Debug.Log() works mostly the same as Print() 2. Print is totally valid, but Debug.Log is a bit more flexable in control. ###### eg: ``` Debug.Log("Hello, World."); ``` ## 02. Variables ### Int / Float int : integer | float : decimal > float add f in the end ###### eg: ``` int hitPoi = 18; float speed = 3.8f; ``` ### String string : data valaue ###### eg: ``` string name = "Steve"; ``` ###
     Like  Bookmark
  • ###### tags: `Unity` | August 4, 2019 # Phase 1 Intro & Setup 1. Unity is the ***game engine*** to show the bahaviors in the game, 2. While using scripts (*.cs files*) to control the behaviors and rules //Wirte in Visual Studio
     Like  Bookmark