示例#1
0
    protected override void Awake()
    {
        base.Awake();
        playerChaser = GetComponent <PlayerChaser>();
        bounce       = GetComponent <BounceComponent>();
        bounce.ResetBounces(3);
        spawn = GetComponent <SpawnComponent>();

        EventList.grubCollect += Beetle_OnBugCollect;
    }
示例#2
0
 protected override void Awake()
 {
     base.Awake();
     bounce = GetComponent <BounceComponent>();
     spawn  = GetComponent <SpawnComponent>();
 }