Exemplo n.º 1
0
 public bool Play()
 {
     if (_heroCtrl.changeWeaponEffect)
     {
         GameObject _temGo = UnityEngine.Object.Instantiate(_heroCtrl.changeWeaponEffect);
         _temGo.transform.SetParent(GameManager.Instance.EffectGoRoot);
         _temGo.transform.position = _heroCtrl.GetWeaponSlot().position;
     }
     _heroCtrl.ChangeNextWeapon();
     _nextChangeWeaponTime = Time.time + _interval;
     return(true);
 }