Check out example codes for "making pong in unity". It will help you in understanding the concepts better.

Code Example 1

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

public class GameManager : MonoBehaviour {

Learn ReactJs, React Native from akashmittal.com