Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using Makinom;
- using System.Collections.Generic;
- namespace Makinom.Schematics.Nodes
- {
- // INFO: The 'EditorHelp' attribute manages the name and description of the node.
- [EditorHelp("ChangeAnimationStateNode", "Changes the animation state.", "")]
- // INFO: The 'NodeInfo' attribute manages in which section the node can be found in the add node selection.
- [NodeInfo("Custom")]
- public class NewSchematicNode : BaseSchematicNode
- {
- // INFO: Place your settings here.
- public NewSchematicNode()
- {
- }
- // INFO: This code will be executed when the node is executed.
- public override void Execute(Schematic schematic)
- {
- targetObject = GameObject.Find("Illyia_Prefab(Clone)");
- targetObject.GetComponent<Character>().ForceAnimation("CROUCH",3.0f);
- // INFO: Don't forget the schematic what to do next.
- schematic.NodeFinished(this.next);
- }
- // INFO: This returns the text displayed in the node's info area.
- public override string GetNodeDetails()
- {
- return "Node info text";
- }
- // INFO: This property handles the color of your node in the node editor.
- public override Color EditorColor
- {
- get{ return Maki.EditorSettings.baseNodeColor;}
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement