コード例 #1
0
 void OnTriggerExit(Collider other)
 {
     Debug.Log("Trigger Exited");
     //if a skyrise exits our trigger, it is no longer capturable
     if (other.gameObject.tag == "Skyrise Section")
     {
         SkyriseSection sr = other.gameObject.GetComponent <SkyriseSection>();
         sr.isCapturable = false;
         FieldElementManager.ClearCapturableSkyrise(sr);
     }
 }
コード例 #2
0
    public void Release()
    {
        rb.isKinematic = false;
        isCaptured     = false;

        FieldElementManager.ClearCapturableSkyrise(this);

        if (isScorable)
        {
            Score();
        }
    }