// Use this for initialization void Start() { //set patrul behavior currentBehavior = Patrul; //init locator locator = GetComponent <TargetLocator>(); }
public EnemieItem(GameObject gameObject) : base(gameObject) { locator = gameObject.GetComponent <TargetLocator>(); if (locator != null) { horizontal = locator.targetDirection.x; } }
void Start() { base.Start(); locator = GetComponent <TargetLocator>(); }