コード例 #1
0
    public AttackersDataClass Constructor()
    {
        AttackersDataClass capture = new AttackersDataClass();

        capture._Name = _Name;
        capture._Obj  = _Obj;
        capture._time = _time;
        return(capture);
    }
コード例 #2
0
ファイル: PlayerStats.cs プロジェクト: mosheepdev/mobastorm
    //ADD THE CURRENT ATTACKER NAME TO THE LIST attackersList
    void AddCaptureAttackers(string attackerTag, GameObject originatorObj, float time)
    {
        for (int i = 0; i < attackersList.Count; i++)         // Loop with for.
        {
            if (attackersList[i]._Name == attackerTag)
            {
                RemoveCaptureAttackers(i);
            }
        }
        AttackersDataClass capture = new AttackersDataClass();

        capture._Name = attackerTag;
        capture._Obj  = originatorObj;
        capture._time = time;
        attackersList.Add(capture);
    }