public void SetLeading(bool isLead, bool updatePartner = true)
    {
        leading = isLead;
        if (isLead)
        {
            if (conversation.partner1 == this)
            {
                conversation.partner1Leads = true;
                isLeadingnow = true;
            }
            else
            {
                conversation.partner1Leads = false;
            }
            SendMessage("StartLeading", SendMessageOptions.DontRequireReceiver);

            // Cast Points if Player
            if (isPlayer)
            {
                SendMessage("StartPoints", SendMessageOptions.DontRequireReceiver);
            }
            else if (partner != null && partner.isPlayer)
            {
                partner.SendMessage("CanCreatePoints", SendMessageOptions.DontRequireReceiver);
            }
        }
        else
        {
            SendMessage("EndLeading", SendMessageOptions.DontRequireReceiver);
            isLeadingnow = false;
        }

        if (partner != null && updatePartner)
        {
            partner.SetLeading(!isLead, false);
        }
    }
Пример #2
0
 private void SendStartFollow()
 {
     SendMessage("TailStartFollow", SendMessageOptions.DontRequireReceiver);
     partnerLink.SendMessage("TailStartFollow", SendMessageOptions.DontRequireReceiver);
 }