Beispiel #1
0
    void Use()
    {
        Debug.Log("Item used: " + OriginTransform.ToString());

        Vector3 newPos = new Vector3(OriginTransform.position.x, 1.0f, OriginTransform.position.z);

        m_body.position = newPos + OriginTransform.forward * 5;
        m_body.rotation = OriginTransform.rotation;         // Quaternion.Euler(0, OriginTransform.rotation.y, 0);
        m_body.velocity = 100f * OriginTransform.forward;
    }
Beispiel #2
0
    void Use()
    {
        m_ItemUseTime = Time.time;

        Debug.Log("Item used: " + OriginTransform.ToString());
    }