﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ElectronTitle : MonoBehaviour {

    [SerializeField]
    private float speed;

	// Use this for initialization
	void Start () {
        float xf = Random.Range(0f, 1f);
        float yf = Random.Range(0f, 1f);

        Vector3 force = new Vector3(xf, yf).normalized;
        GetComponent<Rigidbody>().AddForce(force * speed );
	}
	
	// Update is called once per frame
	void Update () {
		
	}
}
