Пример #1
0
 // Use this for initialization
 void Start()
 {
     //lightPoint = GetComponent<GameObject> ();
     player        = GameObject.FindWithTag("Player").GetComponent <Rigidbody2D>();
     light         = false;
     spriteChanger = gameObject.GetComponent <InterfaceBlockController> ();
 }
 // Use this for initialization
 void Start()
 {
     spriteChanger = gameObject.GetComponent <InterfaceBlockController> ();
 }