transform.Translate movement
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void Update()
{
// Move the object forward along its z axis 1 unit/second.
transform.Translate(Vector3.forward * Time.deltaTime); // Move the object upward in world space 1 unit/second.
transform.Translate(Vector3.up * Time.deltaTime, Space.World);
}
}
Also in C#:
- c# trim string
- delay in unity
- linq query select top 1 c#
- c# enum variable set to nonthing
- c# razor add disabled to button if
- csharp check if env is development
- array c#
- multidimensional meaning
- c# find comma in text and remove
- C# enum
- cshtml foreach
- .net core identity get user id
- disable mouse unity
- c# print to console
- c# enum.getvalues
- unity particle system color
- iterate through dictionary c#
- unity change tag in script
- ignore fakeiteasy
- internal c#
- c# create a text file
- add object to list c#
- c# console delay
- create expression func c# for use in where clause