コード例 #1
0
    public void SetCostume(PlayerCostumeController.CostumeGrade grade)
    {
        _playerHp = Constants._costumeHp [(int)grade];
        _playerMaxHp = _playerHp;
        _playerAttack = Constants._attack [(int)grade];

        _equipmentGrade = (int)grade;

        _criticalRadius = Constants._defaultPlayerCriticalRadius * Constants._critical [(int)grade];
        _criticalBound.startSize = Constants._defaultPlayerCriticalScale * Constants._critical [(int)grade];

        _gameUICtrl.SetPlayerHp (_playerMaxHp, _playerMaxHp);
        _gameUICtrl.SetPlayerAttack (_playerAttack);

        GetComponent<PlayerCostumeController> ().SetCostume ((PlayerCostumeController.CostumeGrade)PlayerPrefs.GetInt ("CurrentCostume", 0));
    }
 public void SetInstance()
 {
     inst = this;
 }