Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        //allTrees = GameObject.FindGameObjectsWithTag("Plant");
        //foreach(GameObject tree in allTrees)
        //{
        //    if (tree.GetComponent<TreeControl>().IsGrowing)
        //    {
        //        SetupTreeArrow(tree.transform);

        //    }
        //}
        if (allPlayerWaitForPoop.Count > 0)
        {
            allPoops = GameObject.FindGameObjectsWithTag("Poop");
            if (allPoops.Length > 0)
            {
                SetupPoopArrow(allPoops[0].transform);
                PlayerGameplayTutR1L0 p = allPlayerWaitForPoop[0];
                p.StartCollectPoop();
                allPlayerWaitForPoop.Remove(p);
            }
        }

        if (!fertTutSkipped && tutTree != null && tutTree.CurTree >= 1)
        {
            foreach (PlayerGameplayTutR1L0 ptut in allPlayerTuts)
            {
                ptut.SkipFertTut();
            }

            fertTutSkipped = true;
        }
    }
Exemplo n.º 2
0
 public void LookForPoop(PlayerGameplayTutR1L0 player)
 {
     allPlayerWaitForPoop.Add(player);
 }