예제 #1
0
파일: Player.cs 프로젝트: patel22p/dorumon
    public override void Awake()
    {
        if (NotInstance())
        {
            return;
        }
        foreach (var t in upperbody)
        {
            Shoot.AddMixingTransform(t);
        }
        foreach (var t in upperbody)
        {
            punch.AddMixingTransform(t);
        }

        base.Awake();

        if (networkView.isMine)
        {
            _Game._PlayerOwn = this;
        }
        else
        {
            _Game._PlayerOther = this;
        }


        an.wrapMode     = WrapMode.Loop;
        run.wrapMode    = WrapMode.Loop;
        sleft.wrapMode  = WrapMode.Loop;
        sright.wrapMode = WrapMode.Loop;
        punch.layer     = Shoot.layer = 1;
        punch.wrapMode  = Shoot.wrapMode = WrapMode.Clamp;
    }