Example #1
0
 // Use this for initialization
 void Start()
 {
     if (randomShaker == null)
     {
         randomShaker = GetComponent <WHCameraRandomShaker>();
     }
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     if( randomShaker==null )
     {
         randomShaker	= GetComponent<WHCameraRandomShaker>();
     }
 }
	void Start () {
		instance		= this;
#if UNITY_EDITOR
		if( Application.isEditor )		// to test shaker instanctly in editor by enable/disable
		{
			shakeOnStart	= true;
		}
#endif
		if( shakers==null || shakers.Length==0 )
		{
			// auto search shakers
			shakers	= GetComponentsInChildren<WHCameraShake>();
		}
	}
Example #4
0
    void Start()
    {
        instance = this;
#if UNITY_EDITOR
        if (Application.isEditor)                       // to test shaker instanctly in editor by enable/disable
        {
            shakeOnStart = true;
        }
#endif
        if (shakers == null || shakers.Length == 0)
        {
            // auto search shakers
            shakers = GetComponentsInChildren <WHCameraShake>();
        }
    }