mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +08:00
OnEnable is a built-in event in Unity, and as such you don't need to override anything. Simply replace 'protected override void Init()' with 'private void OnEnable()'. You can use any access modifier.
17 lines
357 B
Plaintext
17 lines
357 B
Plaintext
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using XNode;
|
|
|
|
public class #SCRIPTNAME# : Node {
|
|
|
|
// Use OnEnable for initialization
|
|
private void OnEnable() {
|
|
#NOTRIM#
|
|
}
|
|
|
|
// Return the correct value of an output port when requested
|
|
public override object GetValue(NodePort port) {
|
|
return null; // Replace this
|
|
}
|
|
} |