using UnityEngine;
using System.Collections;

public class Cape : MonoBehaviour {

    public float speed = 2f;
    public float maxRotation = -30f;

	// Use this for initialization
	void Start () {
	     
	}
	
	// Update is called once per frame
	void Update () {
        transform.rotation = Quaternion.Euler(0f, 0f, maxRotation * Mathf.Sin(Time.time * speed));
	}
}
