private void Awake()
 {
     playerMove       = GetComponent <PlayerMove>();
     playerScript     = GetComponent <PlayerScript>();
     playerChatBubble = GetComponentInChildren <PlayerChatBubble>();
     itemStorage      = GetComponent <ItemStorage>();
 }
 private void Awake()
 {
     equipment        = GetComponent <Equipment>();
     playerMove       = GetComponent <PlayerMove>();
     playerScript     = GetComponent <PlayerScript>();
     playerChatBubble = GetComponentInChildren <PlayerChatBubble>();
     objectBehaviour  = GetComponent <ObjectBehaviour>();
 }
    private void RpcToggleChatIcon(bool turnOn, string message, ChatChannel chatChannel, ChatModifier chatModifier)
    {
        if (!playerChatBubble)
        {
            playerChatBubble = GetComponentInChildren <PlayerChatBubble>();
        }

        playerChatBubble.DetermineChatVisual(turnOn, message, chatChannel, chatModifier);
    }
Example #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);
     }
 }