Пример #1
0
 void Start()
 {
     _abducter = GameObject.FindGameObjectWithTag(Tags.Abducter)
         .GetComponent<Abducter>();
     _abducter.Camels.Add(this.gameObject);
     _controller = GetComponent<CamelController>();
 }
Пример #2
0
 void Start()
 {
     _abducter = GameObject.FindGameObjectWithTag(Tags.Abducter)
                 .GetComponent <Abducter>();
     _abducter.Camels.Add(this.gameObject);
     _controller = GetComponent <CamelController>();
 }
Пример #3
0
    void Start()
    {
        RandomizeTargetSpot();

        _currentState = GOING;
        _controller = GetComponent<CamelController>();
        if (RandomSpeed) {
            Speed = Random.Range(MaxSpeed, MinSpeed);
        }
    }
Пример #4
0
    void Start()
    {
        RandomizeTargetSpot();

        _currentState = GOING;
        _controller   = GetComponent <CamelController>();
        if (RandomSpeed)
        {
            Speed = Random.Range(MaxSpeed, MinSpeed);
        }
    }
Пример #5
0
 void Awake()
 {
     player = GameObject.Find("camel").GetComponent<CamelController>();
     myRenderer = GetComponent<SpriteRenderer> ();
     myCollider = GetComponent<CircleCollider2D> ();
 }
Пример #6
0
 void Start()
 {
     _controller = GetComponent <CamelController>();
     _animator   = Model.GetComponent <Animator>();
 }
Пример #7
0
 void Start()
 {
     _controller = GetComponent<CamelController>();
     _animator = Model.GetComponent<Animator>();
 }