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; }
// Start is called before the first frame update void Start() { position = transform.position; E = FindObjectOfType(typeof(EnemyAppear)) as EnemyAppear; }
// Use this for initialization void Awake() { parent = GetComponentInParent <EnemyAppear>(); }