Example #1
0
    // Use this for initialization
    void Start()
    {
        GameObject actualBlob = GameObject.Find("ActualBlob");

        blobPlayer = actualBlob.GetComponent <BlobPlayer> ();
        temp       = GameObject.Find("Temperature").GetComponent <Temperature> ();
    }
Example #2
0
    // 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> ();
    }
Example #3
0
 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();
     }
 }
Example #4
0
 public override void Start()
 {
     base.Start();
     blobPlayer = GetComponent <BlobPlayer>();
 }
Example #5
0
 public void Deinitialize()
 {
     _blobPlayer = default;
 }
Example #6
0
 public PowerState(BlobPlayer playerObj)
 {
     player = playerObj;
 }
Example #7
0
 public WaterState(BlobPlayer player) : base(player)
 {
 }
Example #8
0
 public VaporState(BlobPlayer player) : base(player)
 {
 }
Example #9
0
 public IceState(BlobPlayer player) : base(player)
 {
 }