Beispiel #1
0
 public new void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     if (!animator.GetBool("drawBowBool"))
     {
         if (!this.playerEvents)
         {
             this.playerEvents = animator.transform.GetComponent <animEventsManager>();
         }
         if (this.playerEvents)
         {
             this.playerEvents.enableSpine();
         }
     }
 }
Beispiel #2
0
 public new void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     if (stateInfo.IsTag("held"))
     {
         if (!this.playerEvents)
         {
             this.playerEvents = animator.transform.GetComponent <animEventsManager>();
         }
         if (this.playerEvents)
         {
             this.playerEvents.enableSpine();
         }
     }
 }
Beispiel #3
0
 public new void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     if (!animator.GetBool("drawBowBool"))
     {
         if (!this.playerEvents)
         {
             this.playerEvents = animator.transform.GetComponent<animEventsManager>();
         }
         if (this.playerEvents)
         {
             this.playerEvents.enableSpine();
         }
     }
 }
Beispiel #4
0
 public new void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     if (stateInfo.IsTag("held"))
     {
         if (!this.playerEvents)
         {
             this.playerEvents = animator.transform.GetComponent<animEventsManager>();
         }
         if (this.playerEvents)
         {
             this.playerEvents.enableSpine();
         }
     }
 }
 private void Awake()
 {
     this.wallSetup = base.transform.GetComponentInChildren<wallTriggerSetup>();
     this.setup = base.GetComponent<playerScriptSetup>();
     this.buoyancy = base.transform.GetComponentInParent<Buoyancy>();
     this.animEvents = base.transform.GetComponent<animEventsManager>();
     this.planeCrashGo = GameObject.FindWithTag("planeCrash");
     this.player = base.transform.GetComponentInParent<PlayerInventory>();
     this.sledHinge = base.transform.GetComponentInChildren<HingeJoint>();
     this.sledPivot = base.GetComponentInParent<Rigidbody>().transform.FindChild("sledPivot").transform;
     if (this.planeCrashGo)
     {
         this.setup.sceneInfo.planeCrash = this.planeCrashGo;
         this.planeCrash = this.planeCrashGo.transform;
     }
     else
     {
         GameObject gameObject = new GameObject();
         this.planeCrash = gameObject.transform;
         this.planeCrash.position = base.transform.position;
         if (this.setup.sceneInfo != null)
         {
             this.setup.sceneInfo.planeCrash = this.planeCrash.gameObject;
         }
     }
 }