using Core.Utilities;
/*using System;
using System.Collections;
using System.Collections.Generic;
using System.Security.Policy;
using TowerDefense.Economy;*/
using UnityEngine;
///
/// 这种派生出来的Singleton如果要起作用,必须要Add Compoment到场景内的某一个Entity上。
///
public class SingleTonCls : Singleton
{
public string mySingleString = "fuckzzj";
///
/// 用于测试 Unity3D 的Add Compoment功能
///
public Vector3 vec3Test;
///
/// TEST CODE 用于测试确认细节
///
public ChildCls testChildCls;
///
/// 这种是关于delegate相关的代码,是不会在Unity的Spector面板中显示出来的,测试一下效果。
///
public FilterTest myTestFilter;
public static int myIntValue { get; set;}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public string getString()
{
if (this.testChildCls != null)
return this.testChildCls.getString();
if( this.myTestFilter != null)
{
if( this.myTestFilter())
{
return "hello,fuckying";
}
else
{
return "hello,fuckzz";
}
}
else
return this.mySingleString;
}
///
/// 测试一个delegate相关的Filter代码
///
///
public delegate bool FilterTest();
}