Function.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    void Start()
    {
        nodeText = GetComponentsInChildren<Text> ()[0];
        nodeCanvas = GetComponentInChildren<Canvas> ();
        controller = GameObject.Find ("GameController").GetComponent<GameController> ();
    }

Usage Example

示例#1
0
 private static void Exec(char keyChar)
 {
     if (keyChar == '1')
     {
         var lesson = new LessonOne();
         lesson.Start();
     }
     else if (keyChar == '2')
     {
         var lesson = new LessonTwo();
         lesson.Start();
     }
     else if (keyChar == '3')
     {
         var lesson = new SimpleObservable();
         lesson.Start();
     }
     else if (keyChar == '4')
     {
         var lesson = new Wrapper();
         lesson.Start();
     }
     else if (keyChar == '5')
     {
         var lesson = new Function();
         lesson.Start();
     }
 }
All Usage Examples Of Function::Start