Beispiel #1
0
    void Start()
    {
        statemachine = new Statemachine();
        statemachine.ChangeState(new Room0State());
        statemachine.ExecuteStateUpdate();

        deathCountdown    = FindObjectOfType <DeathCountdown>();
        robotSoundManager = FindObjectOfType <RobotSoundManager>();
    }
    private void Awake()
    {
        if (Instance != null && Instance != this)
        {
            Destroy(Instance);
        }
        else
        {
            Instance = this;
        }

        audioSource = GetComponent <AudioSource>();
    }