Hi, This is first video on “How to code in unity with C#” series, If You want to learn how to use C# to create games in Unity engine, this tutorial is for you.
You can watch this video here:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TutorialOne : MonoBehaviour
{
public int x1; // 0 ; 1 ;2 ;3 ;-1 ; -2
public float f1; // 0.1 ; 0.3 ; -0.1 ; 1 memory efficient
public double d1; // 0.1 ; 0.3 ; -0.1 ; 1 precise, calculated faster
public char c1; //a ;b ;c ;d
public string s1; // name; John
public bool b1; // true ; false
private int x2;
public static int x3;
public float result;
public Vector2 v2;
public Vector3 v3;
private void Start()
{
result = x1 + f1;
Debug.Log(result);
}
}