示例#1
0
 void Awake()
 {
     playerTransform = GameObject.FindGameObjectWithTag("Player").transform;
     hold            = Hold;
     mouseDown       = MouseDown;
     mouseUp         = MouseUp;
     active          = Active;
 }
示例#2
0
 private void OnDisable()
 {
     landedEvent -= Landed;
     holdEvent   -= Hold;
 }
 void Awake()
 {
     mouseDown = MouseDown;
     hold      = Hold;
 }
示例#4
0
 private void OnEnable()
 {
     landedEvent += Landed;
     holdEvent   += Hold;
 }