Example #1
0
	void Start () 
	{
		m_AI = this.GetComponent<RAIN.Core.AIRig>();

	}
Example #2
0
 /*
     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);
 }
Example #3
0
	void Start () 
	{
		//g_currentHealth = a_maxHealth;
		m_AI = this.GetComponent<RAIN.Core.AIRig>();
	}