SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Creates a interface for the blocks
  2. public interface IBlock{}
  3.  
  4. // The class
  5. public class Block : MonoBehaviour, IBlock{
  6.  
  7. }
  8.  
  9. publci bool HasblockType<IBlock>(this Block block){
  10.     Block blockBelow = block.GetBlockBelow();
  11.     return blockBelow.GetType() == IBlock.GetType();
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top