Exemplo n.º 1
0
 public override void Instanciate_scenary()
 {
     scene =
         Resources.Load(
             "_test/scene/event/test_event_scene") as GameObject;
     scene       = helper.instantiate._(scene);
     event_scene = scene.transform.Find("encounter")
                   .GetComponent <Event_scene>();
 }
Exemplo n.º 2
0
                protected virtual void OnTriggerEnter(Collider other)
                {
                    Event_scene event_scene = other.GetComponent <Event_scene>();

                    if (event_scene == null)
                    {
                        return;
                    }
                    event_scene.open();
                    Destroy(event_scene.gameObject);
                }