Beispiel #1
0
        public void EndExperiment()
        {
            // find monster's home cage
            CageManager  cage  = boardManager.GetCages().Find(x => x.monster == gameObject);
            TableManager table = boardManager.GetTables().Find(x => x.monster == gameObject);

            Vector3 newPos = new Vector3(cage.gameObject.transform.position.x, cage.gameObject.transform.position.y, -.05f);

            gameObject.transform.position = newPos;

            table.monster = null;

            notifManager.ShowNotice("Experiment Complete!");
        }