void Start () { m_AI = this.GetComponent<RAIN.Core.AIRig>(); }
/* private bool _lookForPlayer = false; public bool LookForPlayer { get { return _lookForPlayer; } set { _lookForPlayer = value; if (rig == null) Debug.LogError ("AIRig component is missing in : " + name); rig.AI.WorkingMemory.SetItem<bool> ("lookForPlayer", _lookForPlayer); } }*/ private void Awake() { rig = GetComponent<RAIN.Core.AIRig> (); if (rig == null) Debug.LogError ("AIRig component is missing in : " + name); }
void Start () { //g_currentHealth = a_maxHealth; m_AI = this.GetComponent<RAIN.Core.AIRig>(); }