Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     this._currentHealth    = MaxHealth;
     this._attackController = GetComponentInChildren <AttackController>();
     GetComponent <Rigidbody2D>().freezeRotation = true;
     this._childAnimatorHelper = GetComponent <ChildAnimatorHelper>();
     this._movement            = new Movement(this.transform, this._childAnimatorHelper);
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     this._currentHealthPoints = MaxHealth;
     this._attackController    = GetComponentInChildren <AttackController>();
     this.GetComponent <Rigidbody2D>().freezeRotation = true;
     this._childAnimatorHelper = GetComponent <ChildAnimatorHelper>();
     this._movement            = new Movement(this.transform, this._childAnimatorHelper);
     this._movement.Speed     *= 0.9f;
     this._pointFollower       = new PointFollower(this.PointToFollow, this.Center)
     {
         Threshold = this.Threshold
     };
     this.InitializeRenderers();
 }
Ejemplo n.º 3
0
 public Movement(Transform transform, ChildAnimatorHelper childAnimatorHelper)
 {
     this._transform           = transform;
     this._childAnimatorHelper = childAnimatorHelper;
 }