Beispiel #1
0
        protected override void OnEnable()
        {
            base.OnEnable();
            Owner = target as GUIOnOffSwitch;

            onSprite  = Owner.OnSprite;
            offSprite = Owner.OffSprite;

            onClickEvt = serializedObject.FindProperty("onClick");
        }
Beispiel #2
0
 private void Off(GUIOnOffSwitch onOff)
 {
     isDisable = false;
 }
Beispiel #3
0
 private void On(GUIOnOffSwitch onOff)
 {
     isDisable = true;
 }
Beispiel #4
0
 private void Off(GUIOnOffSwitch onOff)
 {
     Close();
     //onOff.Placeholder.text = "On";
 }
Beispiel #5
0
 private void On(GUIOnOffSwitch onOff)
 {
     Open();
     //onOff.Placeholder.text = "Off";
 }
Beispiel #6
0
 private void Off(GUIOnOffSwitch onOff)
 {
     particle.Stop();
 }
Beispiel #7
0
 private void On(GUIOnOffSwitch onOff)
 {
     particle.Play();
 }