示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        manager     = GameObject.Find("Game Manager");
        gameManager = manager.GetComponent <GameManager>();

        countdownTimerText = countdown.GetComponent <TextMeshProUGUI>();

        logMotion = woodLog.GetComponent <LogMotion>();

        successToggles = successArray.GetComponentsInChildren <Toggle>();
    }
示例#2
0
 // Start is called before the first frame update
 public void Start()
 {
     logMotion = GetComponentInParent <LogMotion>();
 }