コード例 #1
0
 public void InitializeCharacter(CharacterUI input)
 {
     rb           = GetComponent <Rigidbody>();
     currentState = State.none;
     input.InitializeValues(this);
     health.Initialize(input.healthDisplay, "Health", maxHealth);
     mana.Initialize(input.manaDisplay, "Mana", maxMana);
     actions.Initialize(input.actionDisplay, "AP", maxMana);
     actionTimerDisplay = input.actionTimerDisplay;
     actions.SetCurrent(0);
 }