Exemple #1
0
    void Start()
    {
        CameraMoveTo = MoveTo;
#if EDIT
        OnUpdate = PC;
#elif UNITY_ANDROID || UNITY_IPHONE || !EDIT
        OnUpdate = TouchPad;
#endif
        Zoom(0.5f);
    }
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        //DrawDefaultInspector();

        PlatForm myScript = (PlatForm)target;

        if (GUILayout.Button("Destroy platform"))
        {
            myScript.DestroyExistingTiles();
        }

        if (GUILayout.Button("Build platform"))
        {
            myScript.GeneratePlatform();
        }
    }