private void Awake()
    {
        if (instance != null && instance != this)
        {
            Destroy(this.gameObject);
        }
        else
        {
            instance = this;
        }

        bossAnim        = boss.GetComponent <Animator>();
        playerCharContr = player.GetComponent <PlayerController>();
    }
Beispiel #2
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        ScenePrototypeManager script = (ScenePrototypeManager)target;

        if (GUILayout.Button("Create Array of Notes in Seconds"))
        {
            script.setNotesInSeconds();
        }

        //if (GUILayout.Button("Copia")) {
        //    script.copia();
        //}
    }