示例#1
0
        void Start()
        {
            mainGameScript   = FindObjectOfType <MainGameScript>();
            playerGameScript = FindObjectOfType <PlayerGameScript>();

            virtualCamera = GetComponent <CinemachineVirtualCamera>();
        }
示例#2
0
        void Start()
        {
            mainGameScript = FindObjectOfType <MainGameScript>();
            audioPlayer    = FindObjectOfType <AudioPlayer>();

            characterController = GetComponent <EnemyCharacterController>();

            state = EnemyState.Idle;
        }
示例#3
0
        void Start()
        {
            controls        = GetComponent <MouseControls>();
            fishMeterNeedle = FindObjectOfType <FishMeterNeedle>();

            audioPlayer    = FindObjectOfType <AudioPlayer>();
            mainGameScript = FindObjectOfType <MainGameScript>();
            fishStack      = GetComponentInChildren <FishStack>();

            currentFishSchool = null;

            currentWeight = 0.0f;

            newDay = false;
        }