Ejemplo n.º 1
0
    private void Start()
    {
        originalColor   = plantImage.color;
        miniGameManager = GameObject.FindGameObjectWithTag("MiniGameScoreManager").GetComponent <CropHarvestMiniGame>();
        Vector3 position = transform.position;

        position.z           -= 0.1f;
        harvestableCropPrefab = Instantiate(harvestableCropPrefab, position, new Quaternion(), transform.parent);
        harvestableCropPrefab.SetActive(false);

        //Let minGameManager know how many crops are needed to beat the mini game
        miniGameManager.IncrementRequiredScore();
        StartCoroutine(DisplayNeeds());
    }
Ejemplo n.º 2
0
 void Start()
 {
     miniGameManager = GameObject.FindGameObjectWithTag("MiniGameScoreManager").GetComponent <CropHarvestMiniGame>();
 }