Пример #1
0
 private void Initialize()
 {
     col = GetComponent<BoxCollider2D> ();
     col.isTrigger = true;
     personaje = GameObject.Find("Player").GetComponent<CH_Movimiento> ();
     comp_render = GetComponent<SpriteRenderer> ();
 }
Пример #2
0
 private void Initialize()
 {
     col           = GetComponent <BoxCollider2D> ();
     col.isTrigger = true;
     personaje     = GameObject.Find("Player").GetComponent <CH_Movimiento> ();
     comp_render   = GetComponent <SpriteRenderer> ();
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     ch = GameObject.Find ("Player").GetComponent<CH_Movimiento> ();
     if (name == "Puerta") {
         puerta = true;
     } else {
         puerta = false;
     }
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     ch = GameObject.Find("Player").GetComponent <CH_Movimiento> ();
     if (name == "Puerta")
     {
         puerta = true;
     }
     else
     {
         puerta = false;
     }
 }