1- Assets\scripts\Point.cs(13,9): error CS0118: ‘Spawner’ is a type but is used like a variable
2- Assets\scripts\Point.cs(15,49): error CS0117: ‘Spawner’ does not contain a definition for ‘enemyHealth’
3- Assets\scripts\Point.cs(16,49): error CS0117: ‘Spawner’ does not contain a definition for ‘enemyDamage’
using System.Collections;
using System.Collections.Generic;
using System.Security.Cryptography;
using UnityEngine;
public class Point : MonoBehaviour
{
public Enemy enemy;
private Spawner spawner;
// Start is called before the first frame update
void Start()
{
spawner = FindObjectOfType<Spawner>();
Instantiate(enemy, transform.position, transform.rotation);
enemy.health = Mathf.RoundToInt(Spawner.enemyHealth);
enemy.damage = Mathf.RoundToInt(Spawner.enemyDamage);
}
}
Assets\scripts\Point.cs(15,49): error CS1061: ‘Spawner’ does not contain a definition for ‘enemyHealth’ and no accessible extension method ‘enemyHealth’ accepting a first argument of type ‘Spawner’ could be found (are you missing a using directive or an assembly reference?)
Assets\scripts\Point.cs(16,49): error CS1061: ‘Spawner’ does not contain a definition for ‘enemyDamage’ and no accessible extension method ‘enemyDamage’ accepting a first argument of type ‘Spawner’ could be found (are you missing a using directive or an assembly reference?)
using System.Collections;
using System.Collections.Generic;
using System.Security.Cryptography;
using UnityEngine;
public class Point : MonoBehaviour
{
public Enemy enemy;
private Spawner spawner;
// Start is called before the first frame update
void Start()
{
spawner = FindObjectOfType<Spawner>();
Instantiate(enemy, transform.position, transform.rotation);
enemy.health = Mathf.RoundToInt(spawner.enemyHealth);
enemy.damage = Mathf.RoundToInt(spawner.enemyDamage);
}
}