Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. [CreateAssetMenu(fileName = "New Balancer", menuName = "ScriptableObjects/MainBalancer")]
  6. public class MainBalancer : ScriptableObject
  7. {
  8. [System.Serializable]
  9. public class Player
  10. {
  11. [Header("Player Settings")]
  12. [Tooltip("Prędkość ruchu gracza")]
  13. public double speed;
  14. [Tooltip("Prędkość obrotu gracza")]
  15. public double turningRadius;
  16. }
  17.  
  18. [System.Serializable]
  19. public class Enemy
  20. {
  21. [Header("Enemy Settings")]
  22. [Tooltip("Prędkość ruchu przeciwnika")]
  23. public double speed;
  24. [Tooltip("Prędkość obrotu przeciwnika")]
  25. public double turningRadius;
  26. }
  27.  
  28. public Player player = new Player();
  29. public Enemy enemy = new Enemy();
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement