Example #1
0
 // Update is called once per frame
 void Update()
 {
     currentState.Update();
     //			PathFollow (Path);
     Pickup();
     OpenDoor();
     DrawDebugLine(TreasureFind.debugging);
     DrawPath(TreasureFind.debugging);
 }
Example #2
0
        // Update is called once per frame
        public void Update()
        {
            if (prevNode != self.currentNode)
            {
                Influence();

                prevNode = self.currentNode;
            }
            //Influence ();
            currentState.Update();
        }
Example #3
0
    protected override void Update()
    {
        if (IsAlive)
        {
            if (!IsAttacking)
            {
                MyAttackTime += Time.deltaTime;
            }

            currentState.Update();
        }

        if (!IsAlive && !isCounted)
        {
            questmanager.MyKilledEnemy = enemyQuestName;
            isCounted = true;
        }

        base.Update();
    }
Example #4
0
 // Update is called once per frame
 public void Update()
 {
     currentState.Update();
 }