API
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
namespace Player
|
||||
{
|
||||
|
||||
[RequireComponent(typeof(Animator))]
|
||||
public class AnimationPlayer : MonoBehaviour
|
||||
@@ -33,3 +35,4 @@ public class AnimationPlayer : MonoBehaviour
|
||||
animator.SetTrigger("punch");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
using UnityEngine.InputSystem;
|
||||
namespace Player
|
||||
{
|
||||
|
||||
[RequireComponent(typeof(PlayerInput))]
|
||||
public class Block : MonoBehaviour
|
||||
@@ -55,3 +57,4 @@ public class Block : MonoBehaviour
|
||||
return isParrying;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
namespace Player
|
||||
{
|
||||
|
||||
[RequireComponent(typeof(Rigidbody2D))]
|
||||
[RequireComponent(typeof(Collider2D))]
|
||||
@@ -140,3 +142,4 @@ public class Damageable : MonoBehaviour
|
||||
damage = 0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
namespace Player
|
||||
{
|
||||
|
||||
public class PlayerCameraMovement : MonoBehaviour
|
||||
{
|
||||
@@ -84,3 +86,4 @@ public class PlayerCameraMovement : MonoBehaviour
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
using UnityEngine.InputSystem;
|
||||
namespace Player
|
||||
{
|
||||
|
||||
public class PlayerManager : MonoBehaviour
|
||||
{
|
||||
@@ -94,4 +96,4 @@ public class PlayerManager : MonoBehaviour
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}}
|
||||
@@ -1,8 +1,10 @@
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using Unity.IO.LowLevel.Unsafe;
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
using UnityEngine.InputSystem;
|
||||
namespace Player
|
||||
{
|
||||
|
||||
[RequireComponent(typeof(Rigidbody2D))]
|
||||
[RequireComponent(typeof(BoxCollider2D))]
|
||||
@@ -257,3 +259,4 @@ public class PlayerMovement : MonoBehaviour
|
||||
if (IsPhysicallyGrounded()) body.linearVelocity = Vector2.zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,9 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
namespace Player
|
||||
{
|
||||
|
||||
[RequireComponent(typeof(PlayerInput))]
|
||||
[RequireComponent(typeof(AnimationPlayer))]
|
||||
public class Punch : MonoBehaviour
|
||||
@@ -57,3 +60,4 @@ public class Punch : MonoBehaviour
|
||||
GetComponent<PlayerMovement>().maxSpeedOverride = GetComponent<PlayerMovement>().maxSpeed;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
|
||||
namespace Player
|
||||
{
|
||||
|
||||
public class TeleportPlatform : MonoBehaviour
|
||||
{
|
||||
@@ -35,3 +38,4 @@ public class TeleportPlatform : MonoBehaviour
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
namespace Player
|
||||
{
|
||||
|
||||
public class UseItem : MonoBehaviour
|
||||
{
|
||||
@@ -96,3 +98,4 @@ public class UseItem : MonoBehaviour
|
||||
return isHoldingItem;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user