// Start is called before the first frame update void Start() { //El rigidbody se puede utilizar para rigidbody _boxCollider = GetComponent <BoxCollider>(); chomperAnimation = GetComponent <ChomperAnimation>(); rotate = false; }
// Start is called before the first frame update void Start() { rigidbody = GetComponent <Rigidbody>(); chomperAnimation = GetComponent <ChomperAnimation>(); enemyPosition = GameObject.FindGameObjectWithTag("Player").transform; orientNeeded = true; }
// Start is called before the first frame update void Start() { _boxCollider = GetComponent <BoxCollider>(); chomperAnimation = GetComponent <ChomperAnimation>(); sqrDistanceToStop = distanceToStop * distanceToStop; State = AIState.Patrol; ChooseWayPoint(); }
private void setAnimation(ChomperAnimation newAnim) { if (oldChomperAnimation != newAnim) { oldChomperAnimation = newAnim; anim.SetInteger(HASH_PARAM_ANIM_STATE, (int)newAnim); } }
void Start() { sqrVisionDistance = visionDistance * visionDistance; sqrDistanceAttack = distanceToAttack * distanceToAttack; controller = GetComponent <ChomperController>(); animation = GetComponent <ChomperAnimation>(); controller.player = GameObject.FindGameObjectWithTag("Player").transform; }
// Start is called before the first frame update void Start() { rigidbody = GetComponent <Rigidbody>(); chomperAnimation = GetComponent <ChomperAnimation>(); // rotate = false; indexObj = 0; m_GameManager = GameObject.FindGameObjectWithTag("GameManager"); player = GameObject.FindGameObjectWithTag("Player").transform; objetivo = Mojones[indexObj]; }
// Start is called before the first frame update void Start() { rigidbody = GetComponent <Rigidbody>(); chomperAnimation = GetComponent <ChomperAnimation>(); rotate = false; }