Beispiel #1
0
    void Start()
    {
        // Set Starting location of car
        old_position = gameObject.transform.position;
        old_rotation = gameObject.transform.rotation;

        pos = old_position;
        //carBody = GetComponent<Rigidbody2D>();
        EA = FindObjectOfType(typeof(EnemyAppear)) as EnemyAppear;
    }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     position = transform.position;
     E        = FindObjectOfType(typeof(EnemyAppear)) as EnemyAppear;
 }
Beispiel #3
0
 // Use this for initialization
 void Awake()
 {
     parent = GetComponentInParent <EnemyAppear>();
 }