Example #1
0
 public void Restart()
 {
     next_standing      = GameObject.Find("Health_1");
     summon             = next_standing.GetComponent <Summon_Point> ();
     summontrans        = summon.GetComponent <Transform> ();
     icontrans.position = new Vector3(27.81f, -1f);
     moverse            = false;
 }
Example #2
0
    /*private static GameObject priv_icon;
     * public static GameObject public_icon{
     *      get{
     *              if (!priv_icon) {
     *                      priv_icon = GameObject.FindGameObjectWithTag ("icon");
     *              }
     *              if (!priv_icon) {
     *                      throw new UnityException ("icono no encontrado");
     *              }
     *              return priv_icon;
     *      }
     * }*/

    // Use this for initialization
    void Start()
    {
        next_standing = GameObject.Find("Health_1");
        summon        = next_standing.GetComponent <Summon_Point> ();
        rgb           = GetComponent <Rigidbody2D> ();
        icontrans     = GetComponent <Transform> ();
        summontrans   = summon.GetComponent <Transform> ();
        anim          = GetComponent <Animator> ();
        velocidad     = rgb.velocity;
        moverse       = false;
    }
Example #3
0
 void SummonReached()
 {
     moverse = false;
     Statics.script.StartBatalla(2, "Camera_Game");
     if (summon.next_health)
     {
         next_standing = summon.next_health;
         summon        = next_standing.GetComponent <Summon_Point> ();
         summontrans   = summon.GetComponent <Transform> ();
     }
     else
     {
         enabled = false;
     }
 }