示例#1
0
        public static OverLoad operator +(OverLoad arr1, OverLoad arr2)
        {
            OverLoad arrResult = new OverLoad();

            for (int index = 0; index < 5; index++)
            {
                arrResult.Arr[index] = arr1.Arr[index] + arr2.Arr[index];
            }

            return(arrResult);
        }
示例#2
0
 public override void CastSkill()
 {
     base.CastSkill();
     if (target != null)
     {
         Debug.Log(target);
         OverLoad.rate = speedUpRate;
         OverLoad overLoad = target.AddComponent <OverLoad>();
         Destroy(overLoad, stillTime);
         FinishCast();
     }
 }
示例#3
0
        public static bool operator ==(OverLoad arr1, OverLoad arr2)
        {
            OverLoad arrResult = new OverLoad();

            for (int index = 0; index < arrResult.Arr.Length; index++)
            {
                if (arr1.Arr[index] != arr2.Arr[index])
                {
                    arrResult.check = false;
                }
            }
            return(arrResult.check);
        }
示例#4
0
 public OverLoadModify(OverLoad next, IReadOnlyList<TypeSymbol> parameters)
 {
     Next = next;
     Parameters = parameters;
 }