Horje
OnCollsionEnter layermask Code Example
OnCollsionEnter layermask
public LayerMask layerMask;

private void OnTriggerEnter(Collider other)
{
    if (((1 << other.gameObject.layer) & layerMask) != 0)
    {
        // Do stuff
    }
}




Csharp

Related
System.InvalidOperationException: No owin.Environment item was found in the context. Code Example System.InvalidOperationException: No owin.Environment item was found in the context. Code Example
c# printwindow Code Example c# printwindow Code Example
c# linq query map to entity Code Example c# linq query map to entity Code Example
Query mongodb collection as dynamic Code Example Query mongodb collection as dynamic Code Example
how to get the screen size in Tao.Freeglut Code Example how to get the screen size in Tao.Freeglut Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8