Skip to content

Instantly share code, notes, and snippets.

@tolmasky
Last active Aug 29, 2015
Embed
What would you like to do?
using UnityEngine;
using System.Collections;
public class TestBehavior : MonoBehaviour
{
public GameObject whatever;
// Use this for initialization
void Start ()
{
Debug.Log("logical: " + whatever + " " + (whatever == null));
Print(whatever);
}
public void Print(GameObject anObject)
{
Debug.Log("Now it gets nuts: " + anObject + " " + (anObject == null));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment