// Use this for initialization void Start() { GameObject actualBlob = GameObject.Find("ActualBlob"); blobPlayer = actualBlob.GetComponent <BlobPlayer> (); temp = GameObject.Find("Temperature").GetComponent <Temperature> (); }
// Use this for initialization void Start() { numSeeds = 0; isFirst = true; GameObject actualBlob = GameObject.Find("ActualBlob"); blobPlayer = actualBlob.GetComponent <BlobPlayer> (); temp = GameObject.Find("Temperature").GetComponent <Temperature> (); }
public void Initialize() { _blobPlayer = new BlobPlayer(_blob.bytes); if (_spriteRenderers == default || _spriteRenderers.Length != _blobPlayer.ChunksCount) { deinitializeRenderers(); initializeRenderers(); } if (_sprites == default || _sprites.Length != _blobPlayer.AtlasLength) { deinitializeAtlas(); initializeAtlas(); } }
public override void Start() { base.Start(); blobPlayer = GetComponent <BlobPlayer>(); }
public void Deinitialize() { _blobPlayer = default; }
public PowerState(BlobPlayer playerObj) { player = playerObj; }
public WaterState(BlobPlayer player) : base(player) { }
public VaporState(BlobPlayer player) : base(player) { }
public IceState(BlobPlayer player) : base(player) { }