Exemple #1
0
 public void setTargetActor(CActor actor)
 {
     playerActor    = actor;
     this.cMovement = actor.GetComponent <CMovement>();
     this.cCombat   = actor.GetComponent <CCombat>();
 }
Exemple #2
0
 private void init()
 {
     data     = new ActorData();
     movement = this.gameObject.GetComponent <CMovement>();
     combat   = this.gameObject.GetComponent <CCombat>();
 }