示例#1
0
 public void OnTransformLeave(DemonElementHandler handler)
 {
     if (elementsOnButton.Contains(handler.HeldElement))
     {
         RemoveDemonFromButton(handler.HeldElement);
     }
 }
示例#2
0
 private void FetchExternalVariables()
 {
     canvas         = FindObjectOfType <Canvas>().transform;
     elementHandler = GetComponent <DemonElementHandler>();
     if (elementHandler == null)
     {
         print("F****d it");
     }
 }
示例#3
0
 private void FetchDemonVariables(out ElementVesselController vessel, out DemonElementHandler demon)
 {
     vessel = actives.ActiveDemon.GetComponent <DemonController>().MyVessel;
     demon  = actives.ActiveDemon.GetComponent <DemonElementHandler>();
 }
 public void SetHost(GameObject value)
 {
     host           = value;
     elementHandler = host.GetComponent <DemonElementHandler>();
     controller     = host.GetComponent <DemonController>();
 }
示例#5
0
 public void SetDemon(DemonElementHandler demon)
 {
     myDemon = demon;
 }