public void Init(int number, BBEntityStats stats)
 {
     this.number = number;
     this.actionPlayerController = transform.Find(BBSceneConstants.actionEntity).GetComponent<BBActionPlayerController>();
     this.actionPlayerController.Init(number, stats);
     GameObject.FindGameObjectWithTag(BBSceneConstants.canvasControllerTag).GetComponent<BBCanvasController>().SyncPlayerStat(this.number, stats);
 }
Пример #2
0
 public void SetAnimationState(BBActionPlayerController.State state)
 {
     if (this.animator != null) {
         this.animator.SetInteger(BBAnimatorConstants.StateParam, (int)state);
     }
 }