void Awake() { if (instance == null) { instance = this; } if (instance != this) { Destroy(this); } }
protected virtual void Start() { inst_Animation = CharacterAnimationManager.getInstance(); inst_Input = InputManager.getInstance(); inst_toolTipUI = InterationToolTip.getInstance(); bundle = new InteractionEventBundle { eventOwner = this, startAction = OnInteractionStart, cancelAction = OnInteractionCancel }; }