Exemple #1
0
    // Use this for initialization
    void Start()
    {
        parentJunkbot     = GetComponentInParent <Junkbot>();
        cannonInputButton = "Cannon" + parentJunkbot.PlayerNumber;

        audioSource = GetComponent <AudioSource>();
    }
Exemple #2
0
    //functions
    //This script sets everything up for the junkbot and connects it to the player number
    public void Setup()
    {
        //set the reference
        junkbot           = Instance.GetComponent <Junkbot>();
        ColoredPlayerText = "<color=#" + ColorUtility.ToHtmlStringRGB(PlayerColor) + ">PLAYER " + PlayerNumber + "</color>";

        junkbot.PlayerNumber = PlayerNumber;
    }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     parentJunkbot = GetComponentInParent <Junkbot>();
     audioSource   = GetComponent <AudioSource>();
 }
Exemple #4
0
 // Use this for initialization
 void Awake()
 {
     junkbotParent = GetComponentInParent <Junkbot>();
 }
Exemple #5
0
 // Use this for initialization
 void Start()
 {
     parentJunkbot   = GetComponentInParent <Junkbot>();
     hammerInputAxis = "Hammer" + parentJunkbot.PlayerNumber;
     audioSource     = GetComponent <AudioSource>();
 }