Skip to content
Permalink
b906ad178d
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
30 lines (25 sloc) 593 Bytes
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HelloWorld : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Debug.Log("Hello World (start)");
myCode();
}
// Update is called once per frame
void Update()
{
//Debug.Log("Update Me.");
}
private void OnCollisionEnter(Collision collision)
{
myCode();
}
void myCode() // myCode() Prints something to unity console
{
Debug.Log("My Function runs correctly");
}
}