void Start()
 {
     sceneManager = GameObject.Find("SceneManager").GetComponent<SceneManager>();
     sceneManager.AddGameObj(this.gameObject);
     animator = GetComponent<Animator> ();
     doWalkId = Animator.StringToHash ("Do WALK");
     doRunId = Animator.StringToHash ("Do RUN");
 }
    // Use this for initialization
    void Start()
    {
        sceneManager = GameObject.Find("SceneManager").GetComponent<SceneManager>();
        sceneManager.AddGameObj(this.gameObject);

        skybox = new Material(RenderSettings.skybox);
        RenderSettings.skybox = skybox;

        dLight = gameObject.GetComponent<Light>();
    }
 // Use this for initialization
 void Start()
 {
     ps = this.gameObject.GetComponent<ParticleSystem>();
     sceneManager = GameObject.Find("SceneManager").GetComponent<SceneManager>();
     sceneManager.AddGameObj(this.gameObject);
 }