Skip to content

Commit

Permalink
feat(MyBox): Rely on MyBox
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 9, 2023
1 parent dc74bad commit dfebbb0
Show file tree
Hide file tree
Showing 305 changed files with 1,123 additions and 619 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand Down Expand Up @@ -38,7 +39,7 @@ public enum StatusY
private JCS_VelocityInfo mVelocityInfo = null;
private JCS_CharacterControllerInfo mCharacterControllerInfo = null;

[Header("** Runtime Varaibles (JCS_2DFlyAction) **")]
[Separator("Runtime Varaibles (JCS_2DFlyAction)")]

[Tooltip("Speed of flying on x-axis.")]
[SerializeField]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -24,7 +25,7 @@ public class JCS_2DJumpAction : JCS_AIAction

private JCS_VelocityInfo mVelocityInfo = null;

[Header("** Runtime Varaibles (JCS_2DJumpAction) **")]
[Separator("Runtime Varaibles (JCS_2DJumpAction)")]

[Tooltip("How much force to do one jump.")]
[SerializeField]
Expand Down Expand Up @@ -59,7 +60,7 @@ public class JCS_2DJumpAction : JCS_AIAction
[SerializeField]
private JCS_DeltaTimeType mDeltaTimeType = JCS_DeltaTimeType.DELTA_TIME;

[Header("** Action Settings (JCS_2DJumpAction) **")]
[Header("- Action")]

[Tooltip("Generate a random walk speed at the initilaize time.")]
[SerializeField]
Expand All @@ -71,7 +72,7 @@ public class JCS_2DJumpAction : JCS_AIAction
[Range(1.0f, 10.0f)]
private float mRandomJumpForceRange = 5.0f;

[Header("** Optional Settings (JCS_2DJumpAction) **")]
[Header("- Optional")]

[Tooltip("Live object animation.")]
// Animator in order to set the animation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -31,7 +32,7 @@ public enum Status

private JCS_VelocityInfo mVelocityInfo = null;

[Header("** Runtime Varaibles (JCS_2DWalkAction) **")]
[Separator("Runtime Varaibles (JCS_2DWalkAction)")]

[Tooltip("Speed of the action.")]
[SerializeField]
Expand All @@ -57,7 +58,7 @@ public enum Status
[Range(0.0f, 100.0f)]
private float mPossibility = 80.0f;

[Header("** Time Settings (JCS_2DWalkAction) **")]
[Header("- Time")]

[Tooltip("Time to do one walk.")]
[SerializeField]
Expand All @@ -83,7 +84,7 @@ public enum Status
[SerializeField]
private JCS_DeltaTimeType mDeltaTimeType = JCS_DeltaTimeType.DELTA_TIME;

[Header("** Action Settings (JCS_2DWalkAction) **")]
[Header("- Action")]

[Tooltip("Generate a random walk speed at the initilaize time.")]
[SerializeField]
Expand All @@ -95,7 +96,7 @@ public enum Status
[Range(1, 10)]
private float mRandomWalkSpeedRange = 5;

[Header("** Track Effect (JCS_2DWalkAction) **")]
[Header("- Track Effect")]

[Tooltip("If get mad will start tracking the object that make this object mad.")]
[SerializeField]
Expand All @@ -105,7 +106,7 @@ public enum Status
[SerializeField]
private JCS_AttackerRecorder mAttackRecorder = null;

[Header("** Optional Settings (JCS_2DWalkAction) **")]
[Header("- Optional")]

[Tooltip("Live object animation.")]
[SerializeField]
Expand Down
4 changes: 3 additions & 1 deletion Assets/JCSUnity/Scripts/Actions/2D/AI/JCS_2DAIStateSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -31,10 +32,11 @@ public enum JCS_AIMoveActionType
SWIM
};

[Header("** Check Variables (JCS_AIStateSystem) **")]
[Separator("Check Variables (JCS_AIStateSystem)")]

[Tooltip("State of the AI move action.")]
[SerializeField]
[ReadOnly]
private JCS_AIMoveActionType mAIMoveActionType = JCS_AIMoveActionType.NONE;

private JCS_Vector<JCS_AIAction> mAIActions = null;
Expand Down
7 changes: 3 additions & 4 deletions Assets/JCSUnity/Scripts/Actions/2D/AI/JCS_2DDeadAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ public class JCS_2DDeadAction : MonoBehaviour

private JCS_2DLiveObject mLiveObject = null;

[Header("** Optional Settings (JCS_2DDeadAction) **")]
[Header("- Optional")]

[Tooltip("Live object animation.")]
[SerializeField]
private JCS_2DLiveObjectAnimator mLiveObjectAnimator = null;


[Header("** Sound Settings (JCS_2DDeadAction) **")]
[Header("- Sound")]

[Tooltip("Play one shot when this action active.")]
[SerializeField]
Expand All @@ -36,7 +35,7 @@ public class JCS_2DDeadAction : MonoBehaviour
// check to play the die sound.
private bool mSoundPlayed = false;

[Header("** Effect Setting (JCS_2DDeadAction) **")]
[Header("- Effect")]

[Tooltip("Disable unnecessary componenet when died.")]
[SerializeField]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -20,7 +21,7 @@ public class JCS_2DDropItemAction : MonoBehaviour

private JCS_ItemDroppable mItemDroppable = null;

[Header("** Runtime Variables (JCS_2DDropItemAction) **")]
[Separator("Runtime Variables (JCS_2DDropItemAction)")]

[Tooltip("Drop once when the object is dead.")]
[SerializeField]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand Down Expand Up @@ -38,7 +39,7 @@ public enum State

private JCS_AttackerInfo mAttackerInfo = null;

[Header("** Runtime Variables (JCS_2DInitLookByTypeAction) **")]
[Separator("Runtime Variables (JCS_2DInitLookByTypeAction)")]

[Tooltip("Direction the target looking at.")]
[SerializeField]
Expand Down
5 changes: 3 additions & 2 deletions Assets/JCSUnity/Scripts/Actions/2D/JCS_2DActiveSkillAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -18,7 +19,7 @@ public class JCS_2DActiveSkillAction : MonoBehaviour
{
/* Variables */

[Header("** Runtime Variables (JCS_2DActiveSkillAction) **")]
[Separator("Runtime Variables (JCS_2DActiveSkillAction)")]

[Tooltip("Key to active this skill.")]
[SerializeField]
Expand All @@ -36,7 +37,7 @@ public class JCS_2DActiveSkillAction : MonoBehaviour
[SerializeField]
private bool mStayWithActiveTarget = true;

[Header("** Spawn Settings (JCS_2DActiveSkillAction) **")]
[Header("- Spawn")]

[Tooltip("Spawns in the same position.")]
[SerializeField]
Expand Down
5 changes: 3 additions & 2 deletions Assets/JCSUnity/Scripts/Actions/2D/JCS_2DCircleAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -17,7 +18,7 @@ public class JCS_2DCircleAction : MonoBehaviour , JCS_IAction
{
/* Variables */

[Header("** Initialize Variables (JCS_2DCircleAction) **")]
[Separator("Initialize Variables (JCS_2DCircleAction)")]

[Tooltip("Starting rotation degree.")]
[SerializeField]
Expand All @@ -29,7 +30,7 @@ public class JCS_2DCircleAction : MonoBehaviour , JCS_IAction

private float mRotateDegreeTimer = 0.0f;

[Header("** Runtime Variables (JCS_2DCircleAction) **")]
[Separator("Runtime Variables (JCS_2DCircleAction)")]

[Tooltip("Do the movement.")]
[SerializeField]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -18,7 +19,7 @@ public class JCS_2DReflectBulletAction : MonoBehaviour
{
/* Variables */

[Header("** Runtime Variables (JCS_2DReflectBulletAction) **")]
[Separator("Runtime Variables (JCS_2DReflectBulletAction)")]

// TODO(jenchieh): not done yet.
[Tooltip("Force add on after reflect.")]
Expand Down
3 changes: 2 additions & 1 deletion Assets/JCSUnity/Scripts/Actions/2D/JCS_2DRotateAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -17,7 +18,7 @@ public class JCS_2DRotateAction : MonoBehaviour, JCS_IAction
{
/* Variables */

[Header("** Runtime Variables (JCS_2DRotateAction) **")]
[Separator("Runtime Variables (JCS_2DRotateAction)")]

[Tooltip("Do the action?")]
[SerializeField]
Expand Down
3 changes: 2 additions & 1 deletion Assets/JCSUnity/Scripts/Actions/2D/JCS_2DSkills.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -18,7 +19,7 @@ public abstract class JCS_2DSkills : MonoBehaviour
{
/* Variables */

[Header("** Runtime Variables (JCS_2DSkills) **")]
[Separator("Runtime Variables (JCS_2DSkills)")]

[Tooltip("While by pressing this key active skill.")]
[SerializeField]
Expand Down
8 changes: 6 additions & 2 deletions Assets/JCSUnity/Scripts/Actions/2D/JCS_2DTrackAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -17,18 +18,21 @@ public class JCS_2DTrackAction : MonoBehaviour , JCS_IAction
{
/* Variables */

[Header("** Check Variables (JCS_2DTrackAction) **")]
[Separator("Check Variables (JCS_2DTrackAction)")]

[SerializeField]
[ReadOnly]
private float mIndex = 0;

[SerializeField]
[ReadOnly]
private int mOrderIndex = 0;

[SerializeField]
[ReadOnly]
private bool mFollowing = true;

[Header("** Runtime Variables (JCS_2DTrackAction) **")]
[Separator("Runtime Variables (JCS_2DTrackAction)")]

[Tooltip("Transform we want to target.")]
[SerializeField]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2017 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -17,7 +18,7 @@ public class JCS_SimpleInvincibleTimeAction : MonoBehaviour
{
/* Variables */

[Header("** Runtime Variables (JCS_SimpleInvincibleTimeAction) **")]
[Separator("Runtime Variables (JCS_SimpleInvincibleTimeAction)")]

[Tooltip("Time to do the invincible effect.")]
[SerializeField]
Expand Down Expand Up @@ -59,7 +60,7 @@ public class JCS_SimpleInvincibleTimeAction : MonoBehaviour
// current color is.
private bool mFlashToggle = false;

[Header("- Sound Effect (JCS_SimpleInvincibleTimeAction) ")]
[Header("- Sound")]

[Tooltip("Play once while triggered.")]
[SerializeField]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -18,7 +19,7 @@ public class JCS_2DCursorShootAction : MonoBehaviour , JCS_IAction
{
/* Variables */

[Header("** Check Variables (JCS_2DCursorShootAction) **")]
[Separator("Check Variables (JCS_2DCursorShootAction)")]

[SerializeField]
private JCS_ShootAction mShootAction = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (c) 2016 by Shen, Jen-Chieh $
*/
using UnityEngine;
using MyBox;

namespace JCSUnity
{
Expand All @@ -15,19 +16,21 @@ namespace JCSUnity
/// </summary>
[RequireComponent(typeof(JCS_ShootAction))]
[RequireComponent(typeof(JCS_2DCursorShootAction))]
public class JCS_2DSequenceShootActionNoDetection : MonoBehaviour , JCS_IAction
public class JCS_2DSequenceShootActionNoDetection : MonoBehaviour, JCS_IAction
{
/* Variables */

[Header("** Check Variables (JCS_2DCursorShootAction) **")]
[Separator("Check Variables (JCS_2DCursorShootAction)")]

[SerializeField]
[ReadOnly]
private JCS_ShootAction mShootAction = null;

[SerializeField]
[ReadOnly]
private JCS_2DCursorShootAction mCursorShootAction = null;

[Header("** Runtime Variables (JCS_2DCursorShootAction) **")]
[Separator("Runtime Variables (JCS_2DCursorShootAction)")]

[Tooltip("How many shots in sequence?")]
[SerializeField]
Expand Down
Loading

0 comments on commit dfebbb0

Please sign in to comment.