Example #1
0
    private void SetupGameManager()
    {
        GameManager = GameObject.Find("PossessivesManager").GetComponent <PossessivesManager>();

        if (GameManager == null)
        {
            throw new Exception("GameManager Object could not be found");
        }
    }
    protected override void CheckingPhase()
    {
        possessivesManager = (PossessivesManager)sceneManager;

        //Create the baskets and attach to them the script
        CreatePeopleAndBaskets();

        //Spawn Fruits in random order
        CreateAllObjectsAndDisplayInRandomOrder();
    }
    protected override void CheckingPhase()
    {
        audioContext       = (AudioContext3)sceneManager.AudioContext;
        possessivesManager = (PossessivesManager)sceneManager;

        SetTargetObjects();

        //Create the baskets and attach to them the script
        CreatePeopleAndBaskets();


        //Start listening to the guided Harvesting
        EventManager.StartListening(EventManager.Triggers.PickedFruit, TriggerHarvesting);

        maleTotal   = maleObjects.Count;
        femaleTotal = femaleObjects.Count;

        StartCoroutine(IntroductionAndHarvesting());
    }
Example #4
0
 protected override void LearningPhase()
 {
     possessivesManager = (PossessivesManager)sceneManager;
     StartCoroutine(ShowObjectsWithPossessives());
 }
 protected override void LearningPhase()
 {
     audioContext       = (AudioContext3)sceneManager.AudioContext;
     possessivesManager = (PossessivesManager)sceneManager;
     StartCoroutine(SceneIntroduction());
 }