Пример #1
0
 private void Awake()
 {
     playerMove       = GetComponent <PlayerMove>();
     playerScript     = GetComponent <PlayerScript>();
     playerChatBubble = GetComponentInChildren <PlayerChatBubble>();
     itemStorage      = GetComponent <ItemStorage>();
 }
Пример #2
0
 private void Awake()
 {
     equipment        = GetComponent <Equipment>();
     playerMove       = GetComponent <PlayerMove>();
     playerScript     = GetComponent <PlayerScript>();
     playerChatBubble = GetComponentInChildren <PlayerChatBubble>();
     objectBehaviour  = GetComponent <ObjectBehaviour>();
 }
Пример #3
0
    private void RpcToggleChatIcon(bool turnOn, string message, ChatChannel chatChannel, ChatModifier chatModifier)
    {
        if (!playerChatBubble)
        {
            playerChatBubble = GetComponentInChildren <PlayerChatBubble>();
        }

        playerChatBubble.DetermineChatVisual(turnOn, message, chatChannel, chatModifier);
    }
Пример #4
0
 private void Awake()
 {
     playerMove       = GetComponent <PlayerMove>();
     playerScript     = GetComponent <PlayerScript>();
     playerChatBubble = GetComponentInChildren <PlayerChatBubble>();
     foreach (var equipSlot in playerSlots)
     {
         var invSlot = new InventorySlot(equipSlot, true, gameObject);
         Inventory.Add(equipSlot, invSlot);
     }
 }