void Awake(){ myState = this.gameObject.GetComponent<AbstractEntity>(); ai = this.gameObject.GetComponent<BasicAI>(); set(myState.getMAXHP(),myState.getMAXMP(),myState.getHP(),myState.getMP(),leftX,topY,width,height); // animation timeLeftAnimationChange = timeBetweenAnimation; animationHealthForward = true; animationManaForward = false; animationHealthIndex = 0; animationManaIndex = 0; }