コード例 #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     if (instance != this)
     {
         Destroy(this);
     }
 }
コード例 #2
0
 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
     };
 }