Declare , instantiate and use internal class in unity tutorial
ASSALAM o alaikum Code :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InternalClass : MonoBehaviour
{
[System.Serializable]
public class PlayerInfo
{
public string name = "";
public float playerHealth;
}
public PlayerInfo[] playerInfo;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
/////////////////////////////////////////////////////////////////////////////////////////////
ASSALAM o alaikum
All codes and concepts and videos from this channel are non copyrighted and free to use because we believe that knowledge should be freely available for everyone
/////////////////////////////////////////////////////////////////////////////////////////////
Safar by ASHUTOSH
-----------------------------------------------------------------------------------------------------------------------------------
Track: ASHUTOSH - Time
https://soundcloud.com/grandakt
-------------------------------------------------------------------------------------------------------------------------------------
FREE DOWNLOAD:- https://soundcloud.com/grandakt/safar-produced-by-ashutosh-free-download