예제 #1
0
 private Controller2D c; // stores the Controller2D into a variable that can be called
 void Awake()
 {
     c = GetComponent <Controller2D>();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     controller = GetComponent <Controller2D>();
 }