/// <summary> /// Make sure that the 2 parties may actual duel, by calling <see cref="CheckRequirements"/> before. /// </summary> /// <param name="challenger"></param> /// <param name="rival"></param> /// <returns></returns> public static Duel InitializeDuel(Character challenger, Character rival) { challenger.EnsureContext(); rival.EnsureContext(); return new Duel(challenger, rival, DefaultStartDelayMillis, DefaultCancelDelayMillis); }
private static bool CheckBankObj(Character chr, GameObject bankObj) { chr.EnsureContext(); if (bankObj == null) return false; bankObj.EnsureContext(); if (!bankObj.CanBeUsedBy(chr)) return false; return true; }