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

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