Beispiel #1
0
    override protected void Start()
    {
        stunImmune = true;
        timeImmune = true;

        base.Start();

        grid = GetComponent <CubeGrid>();

        LM = BaseLevel.Instance;
        LM.StartAt(350);

        if (!Application.isEditor)
        {
            testMode = false;
        }

        if (!testMode)
        {
            grid.gridState = GridState.OFF;
        }

        if (cameraInfluence != 0)
        {
            Camera.main.GetComponent <ProCamera2D>().AddCameraTarget(
                transform, cameraInfluence, cameraInfluence, 0f);
        }
    }