void OnEnable() { //i like bold handle labels since I'm getting old: style.fontStyle = FontStyle.Bold; style.normal.textColor = Color.white; _target = (FCPath)target; _basePos = _target.transform.position; }
public void Init(FCObject owner) { _owner = owner as AIAgent; if (_owner.PathName != null && _owner.PathName != "") { GameObject gb = LevelManager.Singleton.PathManager.transform.FindChild(_owner.PathName).gameObject; _path = gb.GetComponent <FCPath>(); } if (_path) { _path.GetPath(out _realPathnodes); } }