public void TestLoadKernalManifest()
 {
     IKernal k = new Kernal("main");
     Assert.AreEqual(true, k.ReadyToBuild("c"));
     Assert.AreEqual(true, k.ReadyToBuild("cMock"));
     Assert.AreEqual(true, k.ReadyToBuild("sdCalc"));
 }
Exemple #2
0
        public void TestLoadKernalManifest()
        {
            IKernal k = new Kernal("main");

            Assert.AreEqual(true, k.ReadyToBuild("c"));
            Assert.AreEqual(true, k.ReadyToBuild("cMock"));
            Assert.AreEqual(true, k.ReadyToBuild("sdCalc"));
        }
    void OnLevelWasLoaded()
    {
        if (readFromLevelKernal)
        {
            currentKernal = FindObjectOfType<Kernal>();
            Debug.Log("New Kernal Connected");
        }

        transitionActive = false;
    }
Exemple #4
0
    void Start()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Debug.LogWarning("Multiple copies of the kernal were detected.");
            Destroy(this);
        }

        ass = GetComponent <AudioSource>();

        transform.SetAsFirstSibling();
    }
Exemple #5
0
 void OnDestroy()
 {
     instance = null;
 }
Exemple #6
0
 public ObjectBuilder(Kernal k)
 {
     _k = k;
 }
 // Use this for initialization
 void Start()
 {
     kernal = GameObject.FindObjectOfType <Kernal>();
     GatherPreplacedCharacters();
 }