示例#1
0
        // Update is called once per frame
        void Update()
        {
            if (Input.GetMouseButtonDown(0))
            {
                if (bombActived)
                {
                    RaycastHit hit;

                    if (Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out hit, 100))
                    {
                        ECSBootstrapper.bombPosition(hit.point);
                        //Debug.Log(hit.point);
                    }
                }
            }


            if (Input.GetKeyDown(KeyCode.Escape))
            {
                if (ECSBootstrapper.Cleanup())
                {
                    Application.Quit();
                }
            }
        }
示例#2
0
 public void Confirm()
 {
     if (numberofPeople > 0)
     {
         ECSBootstrapper.spawnPeople(numberofPeople);
     }
 }
示例#3
0
 public void startInfection()
 {
     ECSBootstrapper.startInfection(infectionRate, killingDay);
 }