Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     playerC = Player.GetComponent <PlayerController>();
     cameraC = MainCamera.GetComponent <CameraController>();
     waterC  = WaterTower.GetComponent <WaterController>();
     GameControllerObject = GameObject.Find("GameControllerObject");
     gameC     = GameControllerObject.GetComponent <GameController>();
     soundC    = GameControllerObject.GetComponent <SoundController>();
     timeC     = GameControllerObject.GetComponent <TimeController>();
     playableD = GetComponent <PlayableDirector>();
     StartCoroutine(waterC.StartEvelation(waterDuration));
 }