예제 #1
0
 private void Start()
 {
     machine    = GetComponent <AIStateMachine>();
     tagName    = GetComponent <TargetTag>().tagName;
     eatSounds  = GetComponent <EatSounds>();
     willStarve = GetComponent <WillStarve>();
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        machine = GetComponent <QuestAIStateMachine>();

        gemMode = (GameObject)Instantiate(Resources.Load("Gem"));
        gemMode.transform.parent = this.transform;
        gemMode.SetActive(false);

        homeBounds   = GameObject.Find("Priest Spawn").GetComponent <Collider2D>().bounds;
        homePosition = homeBounds.center.AsVector2();

        pickupSounds = GetComponent <EatSounds>();
    }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     InvokeRepeating("DropABomb", initialDelay, rate);
     eatSounds = GetComponent <EatSounds>();
 }