public void SSActionEvent(SSAction source, SSActionEventType events = SSActionEventType.Completed, int intParam = 0, string strParam = null, Object objectParam = null) { sceneController.ReturnUFO(source.gameObject); }
public void SSActionEvent(SSAction source, SSActionEventType events = SSActionEventType.Completed, int intParam = 0, string strParam = null, Object objectParam = null) { source.gameObject.GetComponent <Rigidbody>().useGravity = false; source.gameObject.GetComponent <Rigidbody>().velocity = Vector3.zero; source.gameObject.GetComponent <Rigidbody>().isKinematic = true; sceneController.ReturnUFO(source.gameObject); }