Ejemplo n.º 1
0
    void Start()
    {
        player        = GameObject.Find("/Player").GetComponent <PlayerCtrl>();
        grid          = GameObject.Find("/GM").GetComponent <GridSystem>();
        beat          = GameObject.Find("/GM").GetComponent <BeatCtrl>();
        ggm           = GameObject.Find("/GlobalGM").GetComponent <GlobalGM>();
        this.arm      = Instantiate(Resources.Load("Prefabs/" + transform.name[0] + "_arm")) as GameObject;
        this.arm_ctrl = arm.GetComponent <ArmShaderCtrl>();
        //transform.position = new Vector3(5, 5, 5);

        //this.pos = new Vector3(this.transform.position.x, this.transform.position.y, this.transform.position.z);
        this.follow = true;
        //InitPosGrid();
        this.can_fall            = true;
        this.project             = true;
        this.beat_after_spawn    = 0;
        this.beat_before_falling = 4;
        this.init       = true;
        this.to_destroy = false;
        if (ggm.mode == 2)
        {
            this.holding_time = 30;
        }
        if (ggm.mode == 3)
        {
            this.holding_time = 20;
        }
        this.arm_ctrl.arm_mode = 0;
    }
Ejemplo n.º 2
0
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
            DontDestroyOnLoad(gameObject);

            currentLevel = 1;

            isPaused    = false;
            levelPaused = 1;

            buttonClicks       = true;
            endlessMusicVolume = 1;
        }
        else
        {
            Destroy(gameObject);
        }
    }
Ejemplo n.º 3
0
 void Start()
 {
     intro_m = GameObject.Find("/IntroManager").GetComponent <IntroManager>();
     ggm     = GameObject.Find("/GlobalGM").GetComponent <GlobalGM>();
 }