Example #1
0
    public override void GoToCompanySelect()
    {
        ConfirmationPopUp.onConfirm -= GoToCompanySelect;
        ConfirmationPopUp.onCancel  -= CancelRally;

        origin = GameObject.Find("The Castle").transform;
        if (origin == null)
        {
            Debug.LogError("encounter can't find the castle");
        }

        RostaInfo.CreateCompanyInfo(this, origin.gameObject, site.gameObject);

        RostaInfo.currentEncounter = this;
        base.GoToCompanySelect();
    }