void AddImage(Transform boxPos, Vector3 boxRotation, RoomTraps theType) { imageTemp = GameObject.Instantiate(theImages[(int)theType]); imageTemp.transform.position = new Vector3(boxPos.position.x, boxPos.position.y + 1.7f, boxPos.position.z); imageTemp.transform.eulerAngles = new Vector3(boxRotation.x, boxRotation.y + 90, boxRotation.z); imageTemp.transform.parent = trapCanvas.transform; trapImages.Add(imageTemp); }
void SetTrap(RoomTraps theTrapTypes) { switch (theTrapTypes) { case RoomTraps.SHOCK: ActivateShock(); break; case RoomTraps.EMP: //theOverSeer.setEMP(true); //print(theOverSeer.getEMP()); break; } }