示例#1
0
 public void InitPowerup(PowerupsPanel panel, PowerupData data)
 {
     _panel = panel;
     _powerup.InitPowerup(data.Level);
     _maxAmount = _powerup.GetMaxMana();
     SetAmountForce(0);
     UpdatePowerupView(data.Level);
     UpdateUseButton();
     UnselectForce();
 }
示例#2
0
 public virtual void InitCharacter(int level)
 {
     _animState = ECharacterAnimState.Normal;
     ScaleObject.transform.localScale = Vector3.one;
     UI.gameObject.SetActive(true);
     _powerup.InitPowerup(level);
     Lives.InitCounter(30, 30);  // TODO according to level
     Mana.InitCounter(0, 15);    // TODO according to level
     UpdateReadyMark();
     _destroyed = false;
     _movable   = true;
     _dead      = false;
     DeadObject.SetActive(false);
     SetValueForce(level);
     UnselectForce();
 }