示例#1
0
    void Start()
    {
        NewObjectSpawner Object1 = CreateNewObjectSpawner();

        Object1.SetProjectile(0, Projectile1);
        Object1.SetColor(0, Color.red);

        NewObjectSpawner Object2 = CreateNewObjectSpawner();

        Object2.SetProjectile(0, Projectile1);
        Object2.SetColor(0, Color.blue);

        NewObjectSpawner Object3 = CreateNewObjectSpawner();

        Object3.SetProjectile(0, Projectile1);
        Object3.SetColor(0, Color.green);

        NewObjectSpawner Object4 = CreateNewObjectSpawner();

        Object4.SetProjectile(0, Projectile1);
        Object4.SetColor(0, Color.yellow);

        NewObjectSpawner Object5 = CreateNewObjectSpawner();

        Object5.SetProjectile(0, Projectile1);
        Object5.SetColor(0, Color.gray);



        Object1.CreateCircle(0, 0.1f, 12, 1, 1, 1);
        Object1.MoveToPosition_Player_X(2, 1);
        Object1.MoveToPosition_Player_Y(2, 1);
    }