Exemplo n.º 1
0
 void Start()
 {
     _abducter = GameObject.FindGameObjectWithTag(Tags.Abducter)
         .GetComponent<Abducter>();
     _abducter.Camels.Add(this.gameObject);
     _controller = GetComponent<CamelController>();
 }
Exemplo n.º 2
0
 void Start()
 {
     _abducter = GameObject.FindGameObjectWithTag(Tags.Abducter)
                 .GetComponent <Abducter>();
     _abducter.Camels.Add(this.gameObject);
     _controller = GetComponent <CamelController>();
 }
Exemplo n.º 3
0
    void Start()
    {
        RandomizeTargetSpot();

        _currentState = GOING;
        _controller = GetComponent<CamelController>();
        if (RandomSpeed) {
            Speed = Random.Range(MaxSpeed, MinSpeed);
        }
    }
Exemplo n.º 4
0
    void Start()
    {
        RandomizeTargetSpot();

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