示例#1
0
    private void MakeTestEncounter()
    {
        state = State.Encounter;
        var encounterObject = new GameObject("Encounter");

        encounter = encounterObject.AddComponent <Encounter>();
        encounter.BeginEncounter(this, Resources.Load <EncounterDescriptor>("Encounters/TestHostile"));
    }
示例#2
0
    private void BeginEncounter()
    {
        Debug.Assert(state == State.PreEncounter);
        state = State.Encounter;

        var encounterObject = new GameObject("Encounter");

        encounter = encounterObject.AddComponent <Encounter>();
        encounter.BeginEncounter(this, nextEncounterDescriptor);
    }