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