Beispiel #1
0
    //bool pInit = false;
    public void Start()
    {
        pulse.SubscribeToPulse(this);

        //init = true;

        movePoints = new List <Vector3>();

        int div = GameManager._BaseMoveOnMeasure ? 4 : GameManager._ArenaDiv;

        this.transform.localScale = new Vector3(this.transform.localScale.x, 7f / div, this.transform.localScale.z);

        float noteWindow = ArenaGrid.arenaHeight / div;
        float baseY      = ArenaGrid.bY;


        for (int i = 0; i < div; i++)
        {
            movePoints.Add(new Vector3(transform.position.x, baseY, transform.position.z));
            baseY += noteWindow;
        }
    }
Beispiel #2
0
 void OnEnable()
 {
     pulse.SubscribeToPulse(this);
 }