示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     scaleChange    = FindObjectOfType <ScaleChange>();
     shrinking      = FindObjectOfType <Shrinking>();
     normalScale    = transform.localScale;
     growingScale   = new Vector3(normalScale.x * 2.5f, normalScale.y, normalScale.z);
     shrinkingScale = new Vector3(normalScale.x / 2, normalScale.y, normalScale.z);
     sprite         = GetComponent <SpriteRenderer>();
 }
示例#2
0
    public Shrinking GetscriptEvent(int _lifetime, Vector3 _scale, GameObject _object)
    {
        Shrinking data = Instantiate(insrance);

        data.lifetime    = _lifetime;
        data.maxlifetime = _lifetime;
        data.scale       = _scale;
        data.objec       = _object;
        Animator anm = data.gameObject.GetComponent <Animator>();

        return(data);
    }
示例#3
0
 void Awake()
 {
     if (!insrance)
     {
         insrance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
示例#4
0
 public override int GetHashCode()
 {
     return(C.GetHashCode() +
            CacheSize.GetHashCode() +
            Coefficient0.GetHashCode() +
            Degree.GetHashCode() +
            EPS.GetHashCode() +
            Gamma.GetHashCode() +
            KernelType.GetHashCode() +
            Nu.GetHashCode() +
            P.GetHashCode() +
            Probability.GetHashCode() +
            Shrinking.GetHashCode() +
            SvmType.GetHashCode() +
            Weights.ToArray().ComputeHashcode());
 }