Beispiel #1
0
 public void GiveFriendship(CharacterStats user, CharacterStats target, float additional)
 {
     if (user.CompareTag("PlayerControlled") && target.CompareTag("PlayerControlled"))
     {
         FriendshipControl f = FindObjectOfType <FriendshipControl>();
         f.IncrementFriendship(Mathf.CeilToInt(baseFriendshipGiven * additional));
     }
 }
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogWarning("More than one FriendshipControl found");
         return;
     }
     instance = this;
 }
    private void Start()
    {
        if (friendshipControl == null)
        {
            friendshipControl = GetComponent <FriendshipControl>();
        }
        if (mCompendium == null)
        {
            mCompendium = FindObjectOfType <MoveCompendium>();
        }
        state = BattleState.START;

        StartCoroutine(BattleSetup());
    }