/// <summary> /// Initialize information /// </summary> void Start() { // Init movement info base.init(); base.setMovementScript(this.gameObject.GetComponent <AStar>()); base.moveTowardsPlayerAtEndOfPath = true; base.targetLocation = Player.Instance.getClosestVertice(); this.controller = this.gameObject.GetComponent <ScorpionController>(); }
/// <summary> /// Initialize information /// </summary> void Start() { // Init movement info base.init(); base.setMovementScript(this.gameObject.GetComponent<AStar>()); base.moveTowardsPlayerAtEndOfPath = true; base.targetLocation = Player.Instance.getClosestVertice(); this.controller = this.gameObject.GetComponent<ScorpionController>(); }