Example #1
0
 private void Update()
 {
     switch (agentType)
     {
     case AgentType.Player:
         if (Input.GetKeyDown(KeyCode.Space))
         {
             AgentScripts.PillShootSetup(
                 master,
                 xxi.banks["pill"].Spawn <InsiderBasicAgent>(xxi.GetEntLot("guys")),
                 transform.position,
                 GetComponent <FacingData>().facing);
         }
         break;
     }
 }