Ejemplo n.º 1
0
    void Start()
    {
        player = GameObject.Find("player").transform;
        playerSeen = false;

        chaser = gameObject.GetComponent<PlayerChaser>();
    }
Ejemplo n.º 2
0
    protected override void Awake()
    {
        base.Awake();
        playerChaser = GetComponent <PlayerChaser>();
        bounce       = GetComponent <BounceComponent>();
        bounce.ResetBounces(3);
        spawn = GetComponent <SpawnComponent>();

        EventList.grubCollect += Beetle_OnBugCollect;
    }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     pc = GetComponentInParent <PlayerChaser>();
 }