void Start() { _abducter = GameObject.FindGameObjectWithTag(Tags.Abducter) .GetComponent<Abducter>(); _abducter.Camels.Add(this.gameObject); _controller = GetComponent<CamelController>(); }
void Start() { _abducter = GameObject.FindGameObjectWithTag(Tags.Abducter) .GetComponent <Abducter>(); _abducter.Camels.Add(this.gameObject); _controller = GetComponent <CamelController>(); }
void Start() { RandomizeTargetSpot(); _currentState = GOING; _controller = GetComponent<CamelController>(); if (RandomSpeed) { Speed = Random.Range(MaxSpeed, MinSpeed); } }
void Start() { RandomizeTargetSpot(); _currentState = GOING; _controller = GetComponent <CamelController>(); if (RandomSpeed) { Speed = Random.Range(MaxSpeed, MinSpeed); } }
void Awake() { player = GameObject.Find("camel").GetComponent<CamelController>(); myRenderer = GetComponent<SpriteRenderer> (); myCollider = GetComponent<CircleCollider2D> (); }
void Start() { _controller = GetComponent <CamelController>(); _animator = Model.GetComponent <Animator>(); }
void Start() { _controller = GetComponent<CamelController>(); _animator = Model.GetComponent<Animator>(); }