Skip to content

Instantly share code, notes, and snippets.

View zachiPL's full-sized avatar

Szymon Zachara zachiPL

  • Chorzów, Poland
View GitHub Profile
@zachiPL
zachiPL / robot.js
Created December 5, 2012 09:54
RotoDancer
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
var a = false;
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@zachiPL
zachiPL / robot.js
Created December 6, 2012 10:47
WallScanner
var Robot = function(robot) {
robot.ignore('onScannedRobot');
robot.rotateCannon(-90);
robot.listen('onScannedRobot');
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@zachiPL
zachiPL / robot.js
Created December 10, 2012 13:48 — forked from PycKamil/robot.js
Pyciu Tank
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
@zachiPL
zachiPL / CustomTapBehaviour
Created February 18, 2014 10:46
Unity tap button (wth SpriteRenderer and BoxCollider2d) - I'm using this a lot.
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(BoxCollider2D))]
public class CustomTapBehaviour : MonoBehaviour
{
#region Fields
public delegate void HandlingEv(GameObject invoker);
public event HandlingEv OnHandlingEv;
@zachiPL
zachiPL / RadialLayout.cs
Last active September 19, 2015 18:07 — forked from DGoodayle/RadialLayout.cs
Radial Layouts in Unity
using UnityEngine;
using UnityEngine.UI;
/*
Radial Layout Group by Just a Pixel (Danny Goodayle) - http://www.justapixel.co.uk
Copyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.IO;
using System;
public class PreLoader : MonoBehaviour
{
public Slider slider;
@zachiPL
zachiPL / ChooseHeroPanel.cs
Last active December 4, 2019 17:55
Inject list elements to prefabs during instatiate
using UnityEngine;
using Zenject;
public class ChooseHeroPanel : MenuPanelBehaviour
{
[Inject] private DiContainer _container;
[Inject] private ILocateConfig _config;
[SerializeField] private GameObject _prefabForSingleHeroView = null;