public void FixedUpdate() { float time = Time.deltaTime; if (null != puck) { puck.UpdatePuck(time); } if (null != agent) { agent.UpdateMallet(time); } if (null != comMallet) { comMallet.UpdateMallet(time); } }