// Use this for initialization void Start() { cSteering = GetComponent<SteerForPoint>(); animator = GetComponent<Animator>(); //the Steering is enabled cSteering.enabled = true; animator.SetInteger("speed", 5); Debug.Log("Speed: " + animator.speed); }
protected override void Initialize() { randomSteer = GetComponent<RandomnessSteerForPoint>(); steerForPoint = GetComponent<SteerForPoint>(); vehicle = GetComponent<AutonomousVehicle>(); animator = GetComponentInChildren<Animator>(); if(manager != null) { manager.pocketTracker.OnPocket += OnPocket; } }
override protected void Initialize() { randomSteer = GetComponent <RandomnessSteerForPoint>(); steerForPoint = GetComponent <SteerForPoint>(); vehicle = GetComponent <AutonomousVehicle>(); animator = GetComponentInChildren <Animator>(); if (manager != null) { manager.pocketTracker.OnPocket += OnPocket; } }
void Start() { _steering = GetComponent<SteerForPoint>(); _steering.OnArrival += (_) => FindNewTarget(); FindNewTarget(); }
void Start() { _steering = GetComponent <SteerForPoint>(); _steering.OnArrival += (_) => FindNewTarget(); FindNewTarget(); }
// Use this for initialization void Start() { cSteering = GetComponent<SteerForPoint> (); animator = GetComponent<Animator> (); }
void Start() { steer = GetComponent <SteerForPoint>(); InvokeRepeating("Randomize", updateRate, updateRate); }
void Start() { steer = GetComponent<SteerForPoint>(); InvokeRepeating("Randomize", updateRate, updateRate); }