예제 #1
0
    void Start()
    {
        gmc    = GetComponent <GMComponent>();
        player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();

        Invoke("Alarm0", 1.0f / GM.fps);
    }
예제 #2
0
    void Start()
    {
        gmc = GetComponent <GMComponent>();

        gmc.ImageSpeed = 0.0f;
        gmc.ImageIndex = (uint)Random.Range(0, 7 + 1);
    }
예제 #3
0
    void Alarm2()
    {
        if (player != null)
        {
            float a = GMComponent.PointDirection(
                transform.position.x,
                transform.position.y,
                player.transform.position.x + 20,
                player.transform.position.y - 20
                );

            float asd = 0.0f;

            for (int i = 0; i < 8; i++)
            {
                GMComponent gmcObj =
                    Instantiate(karaHurudan, transform.position, Quaternion.identity)
                    .GetComponent <GMComponent>();

                gmcObj.Speed     = 25;
                gmcObj.Direction = a + asd;

                asd += 360 / 8;
            }

            Invoke("Alarm2", 1.0f / GM.fps * 1.75f);
        }
    }
예제 #4
0
    public void Alarm0()
    {
        if (preventAlarm0)
        {
            return;
        }

        float       a      = GMComponent.PointDirection(GM.offsetX + 800, GM.offsetY - 0, player.transform.position.x, player.transform.position.y);
        GMComponent gmcObj =
            Instantiate(object724, new Vector2(GM.offsetX + 800, GM.offsetY - 0), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = 30;
        gmcObj.Direction = a;


        a      = GMComponent.PointDirection(GM.offsetX + 0, GM.offsetY - 0, player.transform.position.x, player.transform.position.y);
        gmcObj =
            Instantiate(object724, new Vector2(GM.offsetX + 0, GM.offsetY - 0), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = 30;
        gmcObj.Direction = a;

        Invoke("Alarm0", 1.0f / GM.fps);
    }
예제 #5
0
    public void Alarm6()
    {
        GMComponent gmcObj =
            Instantiate(hanteinaiyo, new Vector2(GM.offsetX, GM.offsetY - 608.0f), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = 4;
        gmcObj.Direction = Random.Range(0.0f, 35.0f);


        gmcObj =
            Instantiate(hanteinaiyo, new Vector2(GM.offsetX + 800.0f, GM.offsetY - 608.0f), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = 4;
        gmcObj.Direction = Random.Range(145.0f, 180.0f);


        gmcObj =
            Instantiate(hanteinaiyo, new Vector2(GM.offsetX, GM.offsetY), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = 8.5f;
        gmcObj.Direction = Random.Range(270.0f, 315.0f);


        gmcObj =
            Instantiate(hanteinaiyo, new Vector2(GM.offsetX + 800.0f, GM.offsetY), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = 8.5f;
        gmcObj.Direction = Random.Range(225.0f, 270.0f);

        Invoke("Alarm6", 1.0f / GM.fps * 5.0f);
    }
예제 #6
0
    void Start()
    {
        gmc = GetComponent <GMComponent>();

        gmc.ImageSpeed = 0.0f;
        gmc.ImageAngle = gmc.Direction;
    }
예제 #7
0
    void Start()
    {
        gmc = GetComponent <GMComponent>();

        gmc.ImageSpeed = 0.0f;
        gmc.ImageAlpha = 0.0f;
    }
예제 #8
0
    public void Alarm1()
    {
        b += 2.0f;

        GMComponent gmcObj =
            Instantiate(ransu, new Vector2(GM.offsetX + 800.0f, GM.offsetY - Random.Range(0.0f, 608.0f)), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = Random.Range(10.0f, 12.0f);
        gmcObj.Direction = b;


        gmcObj =
            Instantiate(ransu, new Vector2(GM.offsetX + Random.Range(0.0f, 800.0f), GM.offsetY - 0.0f), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = Random.Range(10.0f, 12.0f);
        gmcObj.Direction = b;


        gmcObj =
            Instantiate(ransu, new Vector2(GM.offsetX, GM.offsetY - Random.Range(0.0f, 608.0f)), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = Random.Range(10.0f, 12.0f);
        gmcObj.Direction = b;


        Invoke("Alarm1", 1.0f / GM.fps * 2.5f);
    }
예제 #9
0
    void Start()
    {
        gmc = GetComponent <GMComponent>();

        gmc.ImageSpeed = 0.0f;

        Invoke("Alarm0", 1.0f / GM.fps);
    }
예제 #10
0
    void Start()
    {
        gmc = GetComponent <GMComponent>();

        gmc.ImageAlpha = 0.9f;

        Invoke("Alarm0", 1.0f / GM.fps);
    }
예제 #11
0
    void Start()
    {
        gmc       = GetComponent <GMComponent>();
        obstacles = GetComponent <NewCollider2D>();

        gmc.ImageSpeed  = 0.0f;
        gmc._applySpeed = false;
    }
예제 #12
0
    void Start()
    {
        gmc = GetComponent <GMComponent>();

        gmc.ImageSpeed  = 0.0f;
        gmc.ImageScaleX = 1.2f;
        gmc.ImageScaleY = 1.2f;
    }
예제 #13
0
    void Start()
    {
        gmc    = GetComponent <GMComponent>();
        player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();

        gmc.ImageSpeed  = 0.0f;
        gmc.ImageScaleX = 2;
        gmc.ImageScaleY = 2;
    }
예제 #14
0
    void Start()
    {
        gmc = GetComponent <GMComponent>();

        gmc.ImageSpeed  = 0;
        gmc.ImageScaleX = 1.5f;
        gmc.ImageScaleY = 1.5f;
        gmc.ImageIndex  = 1;
    }
예제 #15
0
 public void Alarm1()
 {
     t  = 1;
     pd = GMComponent.PointDistance(
         GM.offsetX + p1, GM.offsetY - p2,
         player.transform.position.x, player.transform.position.y);
     d = GMComponent.PointDirection(
         GM.offsetX + p1, GM.offsetY - p2,
         player.transform.position.x, player.transform.position.y);
 }
예제 #16
0
    void Start()
    {
        gmc = GetComponent <GMComponent>();

        gmc.ImageSpeed  = 0.0f;
        gmc.ImageScaleX = 1.2f;
        gmc.ImageScaleY = 1.2f;

        Invoke("Alarm0", 1.0f / GM.fps * 2.5f);
    }
예제 #17
0
    public void Alarm0()
    {
        gmc.MoveTowardsPoint(player.transform.position.x, player.transform.position.y, 4);

        GMComponent gmcObj = Instantiate(object724, transform.position, Quaternion.identity).GetComponent <GMComponent>();

        gmcObj.Speed     = Random.Range(10.0f, 14.0f);
        gmcObj.Direction = Random.Range(0.0f, 360.0f);

        Invoke("Alarm0", 1.0f / GM.fps);
    }
예제 #18
0
    public void Alarm4()
    {
        GMComponent gmcObj =
            Instantiate(hanteinai, new Vector2(GM.offsetX + Random.Range(0.0f, 800.0f), GM.offsetY - 0.0f), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = 16.5f;
        gmcObj.Direction = 270.0f;

        Invoke("Alarm4", 1.0f / GM.fps);
    }
예제 #19
0
    public void Alarm2()
    {
        GMComponent gmcObj =
            Instantiate(object724, new Vector2(GM.offsetX + Random.Range(0.0f, 800.0f), GM.offsetY - 0.0f), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = Random.Range(8.0f, 10.0f);
        gmcObj.Direction = 270.0f;

        Invoke("Alarm2", 1.0f / GM.fps);
    }
    public void Alarm1()
    {
        GMComponent gmcObj =
            Instantiate(object833, new Vector2(GM.offsetX - 300, GM.offsetY - Random.Range(50.0f, 600.0f)), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = Random.Range(12.0f, 14.0f);
        gmcObj.Direction = Random.Range(-10.0f, 10.0f);

        Invoke("Alarm1", 1.0f / GM.fps * Random.Range(1, 3));
    }
    public void Alarm1()
    {
        GMComponent gmcObj =
            Instantiate(hanabi, transform.position, Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = Random.Range(8.0f, 12.0f);
        gmcObj.Direction = Random.Range(0.0f, 360.0f);

        Invoke("Alarm1", 1.0f / GM.fps);
    }
예제 #22
0
    public void Alarm4()
    {
        GMComponent gmcObj =
            Instantiate(hanabi, new Vector2(
                            GM.offsetX + 400, GM.offsetY - 10), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = 11 + a;
        gmcObj.Direction = Random.Range(-180.0f, 0.0f);

        Invoke("Alarm4", 1.0f / GM.fps * 2);
    }
예제 #23
0
    public void Alarm1()
    {
        GMComponent gmcObj =
            Instantiate(object724, new Vector2(GM.offsetX + 400.0f, GM.offsetY - 608), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = Random.Range(12.0f, 14.0f);
        gmcObj.Direction = Random.Range(70.0f, 110.0f);
        gmcObj.gravity   = -0.2f;

        Invoke("Alarm1", 1.0f / GM.fps * 2.0f);
    }
예제 #24
0
    public void Alarm2()
    {
        for (int i = 0; i < 3; i++)
        {
            GMComponent gmcObj =
                Instantiate(hanabi, transform.position, Quaternion.identity)
                .GetComponent <GMComponent>();

            gmcObj.Speed     = 11.5f + a;
            gmcObj.Direction = Random.Range(0.0f, 360.0f);
        }

        Invoke("Alarm2", 1.0f / GM.fps * 5);
    }
예제 #25
0
    public void Alarm2()
    {
        float t = Random.Range(0.5f, 0.9f);

        GMComponent gmcObj =
            Instantiate(object871, new Vector2(GM.offsetX + 400, GM.offsetY - 10), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed       = Random.Range(4.0f, 8.0f);
        gmcObj.Direction   = Random.Range(224.0f, 316.0f);
        gmcObj.ImageScaleX = t;
        gmcObj.ImageScaleY = t;

        Invoke("Alarm2", 1.0f / GM.fps);
    }
예제 #26
0
    void Alarm3()
    {
        for (int i = 0; i < 10; i++)
        {
            GMComponent gmcObj =
                Instantiate(object724, transform.position, Quaternion.identity)
                .GetComponent <GMComponent>();

            gmcObj.Speed     = Random.Range(11.0f, 13.0f);
            gmcObj.Direction = Random.Range(60.0f, 100.0f);
            gmcObj.gravity   = -0.3f;
        }

        Invoke("Alarm3", 1.0f / GM.fps);
    }
    public void Alarm0()
    {
        if (cancelAlarm0)
        {
            return;
        }

        GMComponent gmcObj =
            Instantiate(object832, new Vector2(GM.offsetX + 1100, GM.offsetY - Random.Range(30.0f, 600.0f)), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = Random.Range(12.0f, 14.0f);
        gmcObj.Direction = Random.Range(170.0f, 190.0f);

        Invoke("Alarm0", 1.0f / GM.fps * Random.Range(1, 3));
    }
예제 #28
0
    public void Alarm0()
    {
        if (cancelAlarm0)
        {
            return;
        }

        GMComponent gmcObj =
            Instantiate(object724, new Vector2(GM.offsetX + Random.Range(0.0f, 800.0f), GM.offsetY - 0.0f), Quaternion.identity)
            .GetComponent <GMComponent>();

        gmcObj.Speed     = Random.Range(10.0f, 14.0f);
        gmcObj.Direction = Random.Range(260.0f, 280.0f);

        Invoke("Alarm0", 1.0f / GM.fps);
    }
예제 #29
0
    public void Alarm1()
    {
        float a   = 6;
        float asd = 0;

        for (int i = 0; i < 60; i++)
        {
            GMComponent gmcObj = Instantiate(hadouken, transform.position, Quaternion.identity).GetComponent <GMComponent>();

            gmcObj.Speed     = 40;
            gmcObj.Direction = a + asd;

            asd += 360 / 60;
        }

        Invoke("Alarm1", 1.0f / GM.fps * 5);
    }
예제 #30
0
    public void Alarm3()
    {
        float a   = Random.Range(0.0f, 6.0f);
        float asd = 0;

        for (int i = 0; i < 50; i++)
        {
            GMComponent gmcObj =
                Instantiate(object915, new Vector2(GM.offsetX + 400, GM.offsetY - 80), Quaternion.identity)
                .GetComponent <GMComponent>();

            gmcObj.Speed     = 4;
            gmcObj.Direction = a + asd;
            asd += 360.0f / 50.0f;
        }

        Invoke("Alarm3", 1.0f / GM.fps * 15);
    }