コード例 #1
0
    public override void Accomplish(IDMain self, IDMain instigator)
    {
        string instigatorMessage;
        string selfMessage;
        bool   flag  = self == 0;
        bool   flag2 = instigator == 0;

        if (flag)
        {
            if (!flag2)
            {
                if (this.selfNonNull)
                {
                    return;
                }
                Debug.LogWarning("Self is null!", this);
            }
            else
            {
                Debug.LogError("Self and instgator are null", this);
            }
        }
        else if (flag2)
        {
            if (this.instigatorNonNull)
            {
                return;
            }
            Debug.LogWarning("Instigator is null!", this);
        }
        if (this.swapMessageOrder)
        {
            IDMain main = self;
            self              = instigator;
            instigator        = main;
            instigatorMessage = this.instigatorMessage;
            selfMessage       = this.selfMessage;
            bool flag3 = flag;
            flag  = flag2;
            flag2 = flag3;
        }
        else
        {
            instigatorMessage = this.selfMessage;
            selfMessage       = this.instigatorMessage;
        }
        if (this.withOtherAsArg)
        {
            if (!flag && !string.IsNullOrEmpty(instigatorMessage))
            {
                self.SendMessage(instigatorMessage, instigator, SendMessageOptions.DontRequireReceiver);
            }
            if (!flag2 && !string.IsNullOrEmpty(selfMessage))
            {
                instigator.SendMessage(selfMessage, self, SendMessageOptions.DontRequireReceiver);
            }
        }
        else
        {
            if (!flag && !string.IsNullOrEmpty(instigatorMessage))
            {
                self.SendMessage(instigatorMessage, SendMessageOptions.DontRequireReceiver);
            }
            if (!flag2 && !string.IsNullOrEmpty(selfMessage))
            {
                instigator.SendMessage(selfMessage, SendMessageOptions.DontRequireReceiver);
            }
        }
    }
コード例 #2
0
    // Token: 0x06002629 RID: 9769 RVA: 0x0008AE78 File Offset: 0x00089078
    public override void UnAcomplish(IDMain self, IDMain instigator)
    {
        bool flag  = !self;
        bool flag2 = !instigator;

        if (flag)
        {
            if (flag2)
            {
                Debug.LogError("Self and instgator are null", this);
            }
            else
            {
                if (this.exitSelfNonNull)
                {
                    return;
                }
                Debug.LogWarning("Self is null!", this);
            }
        }
        else if (flag2)
        {
            if (this.exitInstigatorNonNull)
            {
                return;
            }
            Debug.LogWarning("Instigator is null!", this);
        }
        string text;
        string text2;

        if (this.exitSwapMessageOrder)
        {
            IDMain idmain = self;
            self       = instigator;
            instigator = idmain;
            text       = this.exitInstigatorMessage;
            text2      = this.exitSelfMessage;
            bool flag3 = flag;
            flag  = flag2;
            flag2 = flag3;
        }
        else
        {
            text  = this.exitSelfMessage;
            text2 = this.exitInstigatorMessage;
        }
        if (this.exitWithOtherAsArg)
        {
            if (!flag && !string.IsNullOrEmpty(text))
            {
                self.SendMessage(text, instigator, 1);
            }
            if (!flag2 && !string.IsNullOrEmpty(text2))
            {
                instigator.SendMessage(text2, self, 1);
            }
        }
        else
        {
            if (!flag && !string.IsNullOrEmpty(text))
            {
                self.SendMessage(text, 1);
            }
            if (!flag2 && !string.IsNullOrEmpty(text2))
            {
                instigator.SendMessage(text2, 1);
            }
        }
    }
コード例 #3
0
 public override void UnAcomplish(IDMain self, IDMain instigator)
 {
     string str;
     string str1;
     bool flag = !self;
     bool flag1 = !instigator;
     if (flag)
     {
         if (!flag1)
         {
             if (this.exitSelfNonNull)
             {
                 return;
             }
             Debug.LogWarning("Self is null!", this);
         }
         else
         {
             Debug.LogError("Self and instgator are null", this);
         }
     }
     else if (flag1)
     {
         if (this.exitInstigatorNonNull)
         {
             return;
         }
         Debug.LogWarning("Instigator is null!", this);
     }
     if (!this.exitSwapMessageOrder)
     {
         str = this.exitSelfMessage;
         str1 = this.exitInstigatorMessage;
     }
     else
     {
         IDMain dMain = self;
         self = instigator;
         instigator = dMain;
         str = this.exitInstigatorMessage;
         str1 = this.exitSelfMessage;
         bool flag2 = flag;
         flag = flag1;
         flag1 = flag2;
     }
     if (!this.exitWithOtherAsArg)
     {
         if (!flag && !string.IsNullOrEmpty(str))
         {
             self.SendMessage(str, SendMessageOptions.DontRequireReceiver);
         }
         if (!flag1 && !string.IsNullOrEmpty(str1))
         {
             instigator.SendMessage(str1, SendMessageOptions.DontRequireReceiver);
         }
     }
     else
     {
         if (!flag && !string.IsNullOrEmpty(str))
         {
             self.SendMessage(str, instigator, SendMessageOptions.DontRequireReceiver);
         }
         if (!flag1 && !string.IsNullOrEmpty(str1))
         {
             instigator.SendMessage(str1, self, SendMessageOptions.DontRequireReceiver);
         }
     }
 }
コード例 #4
0
    public override void UnAcomplish(IDMain self, IDMain instigator)
    {
        string str;
        string str1;
        bool   flag  = !self;
        bool   flag1 = !instigator;

        if (flag)
        {
            if (!flag1)
            {
                if (this.exitSelfNonNull)
                {
                    return;
                }
                Debug.LogWarning("Self is null!", this);
            }
            else
            {
                Debug.LogError("Self and instgator are null", this);
            }
        }
        else if (flag1)
        {
            if (this.exitInstigatorNonNull)
            {
                return;
            }
            Debug.LogWarning("Instigator is null!", this);
        }
        if (!this.exitSwapMessageOrder)
        {
            str  = this.exitSelfMessage;
            str1 = this.exitInstigatorMessage;
        }
        else
        {
            IDMain dMain = self;
            self       = instigator;
            instigator = dMain;
            str        = this.exitInstigatorMessage;
            str1       = this.exitSelfMessage;
            bool flag2 = flag;
            flag  = flag1;
            flag1 = flag2;
        }
        if (!this.exitWithOtherAsArg)
        {
            if (!flag && !string.IsNullOrEmpty(str))
            {
                self.SendMessage(str, SendMessageOptions.DontRequireReceiver);
            }
            if (!flag1 && !string.IsNullOrEmpty(str1))
            {
                instigator.SendMessage(str1, SendMessageOptions.DontRequireReceiver);
            }
        }
        else
        {
            if (!flag && !string.IsNullOrEmpty(str))
            {
                self.SendMessage(str, instigator, SendMessageOptions.DontRequireReceiver);
            }
            if (!flag1 && !string.IsNullOrEmpty(str1))
            {
                instigator.SendMessage(str1, self, SendMessageOptions.DontRequireReceiver);
            }
        }
    }