isGrounded script for copy
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Example : MonoBehaviour {
Rigidbody rigid;
bool IsGrounded;
void Start () {
rigid = GetComponent<Rigidbody>();
}
void Update () {
if (rigid.velocity.y == 0){
IsGrounded = true;
}
else{
IsGrounded = false;
}
}
}
Also in C#:
- c# find comma in text and remove
- .net core executenonqueryasync transaction
- c# switct case
- iterate through xpdictionary devexpress
- unity making homing rocket
- linq query select top 1 c#
- unity get child
- month number to text in c#
- ignore fakeiteasy
- find month number from date C#
- devexpress objectspace to session
- uwp roaming data sample
- unity move character
- loop over enum values
- array c#
- .sh script: check if file exist
- how to reduce garbage collection c#
- jumping with character controller unity
- get all child gameObject of gameObject C#
- open udp socket c#
- resize image c#
- while loop in c#
- c# how to use inovke
- c# get value of object in enum