poprawki materialy unity 6, pajaki, podmiana katalogu FSM w AIControlerze, zmiana w Spider 2.0 Behaviours , skopane zycie bylo, ladowalo pajaka z zyciem 2.
This commit is contained in:
22
Assets/ThirdParty/Invector-AIController/Scripts/AI/vFSMBehaviourController_MessageReceiver.cs
vendored
Normal file
22
Assets/ThirdParty/Invector-AIController/Scripts/AI/vFSMBehaviourController_MessageReceiver.cs
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Invector.vCharacterController.AI.FSMBehaviour
|
||||
{
|
||||
public partial class vFSMBehaviourController : vMonoBehaviour, vIFSMBehaviourController
|
||||
{
|
||||
public vMessageReceiver messageReceiver
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_messageReceiver == null && !tryGetMessageReceiver) _messageReceiver = GetComponent<vMessageReceiver>();
|
||||
if (_messageReceiver == null && !tryGetMessageReceiver) tryGetMessageReceiver = true;
|
||||
|
||||
return _messageReceiver;
|
||||
}
|
||||
}
|
||||
private vMessageReceiver _messageReceiver;
|
||||
private bool tryGetMessageReceiver;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user