Beispiel #1
0
    private void Awake()
    {
        GameObject player = GameObject.FindGameObjectWithTag("Player");

        m_PlayerStatus = player.GetComponent <Status>();
        m_WeaponTaker  = player.GetComponent <WeaponTaker>();
    }
Beispiel #2
0
 public override void UseSkill(Transform _trans)
 {
     if (MSkillStatus == SkillStatusEnum.Ready)
     {
         MSkillStatus = SkillStatusEnum.Continued;
         m_WaitTime   = 0;
         wepaontaker  = _trans.parent.GetComponent <WeaponTaker>();
         VFXControllerM.Instance.ScreenFlicker(DurationTime);
         //SkillKill();
     }
 }
Beispiel #3
0
 public void LoadData(Data data)
 {
     StatusType = ((IData)data).StatusType;
     maxHp      = ((IData)data).maxHp;
     hp         = maxHp;
     AddStatusBuff(((IData)data).m_StatusBuffs);
     isStoic = ((IData)data).isStoic;
     if (StatusType == CharacterType.Player)
     {
         WeaponTaker taker = GetComponent <WeaponTaker>();
         //FragmenMgr.Instance.Clear();
         //if (((IData)data).frags.names != null)
         //    for (int i = 0; i < ((IData)data).frags.names.Count; i++)
         //    {
         //        if(((IData)data).frags.names[i] != FragmentName.Null)
         //            taker.AddFragment(((IData)data).frags.names[i]);
         //    }
         FragmenMgr.Instance.FlushBuffs();
         taker.CurrentTakeWeapons = ((IData)data).weapons;
         taker.CutoverWeapon(((IData)data).WeaponIndex);
     }
 }
Beispiel #4
0
 private void OnLevelWasLoaded(int level)
 {
     weaponTaker = GameObject.FindGameObjectWithTag("Player").GetComponent <WeaponTaker>();
 }
Beispiel #5
0
 private void Awake()
 {
     weaponTaker = GameObject.FindGameObjectWithTag("Player").GetComponent <WeaponTaker>();
 }