Beispiel #1
0
 void Start()
 {
     goAround = GetComponent <GoAround>();
     if (waypoints.Length < 1)
     {
         Debug.LogError("Target's waypoints.Length = 0 :: " + this.name);
     }
     else
     {
         transform.position = bc.transform.position;
     }
 }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        Alive    = true;
        RoundEnd = false;
        Active   = false;

        enemy = GetComponent <Enemy>();
        //enemy.enabled = true;

        move = GetComponent <Move>();
        //move.enabled = false;

        goAround = GetComponent <GoAround>();
        //goAround.enabled = true;

        rigidbody2 = GetComponent <Rigidbody2D>();
        Init();
    }