示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     pressedButtonBehaviour = animator.GetBehaviour <PressedButtonBehaviour>();
     pressedButtonBehaviour.buttonScript  = this;
     cooldownButtonBehaviour              = animator.GetBehaviour <CooldownButtonBehaviour>();
     cooldownButtonBehaviour.buttonScript = this;
 }
    // Use this for initialization
    void Start()
    {
        pressButtonBehaviour = animt.GetBehaviour <PressedButtonBehaviour>();
        pressButtonBehaviour.skillButtonScript = this;

        cooldownButtonBehaviour = animt.GetBehaviour <CooldownButtonBehaviour>();
        cooldownButtonBehaviour.skillButtonScript = this;
    }